# Reply Private Discord Message

`Reply Private Discord Message` blocks are used in conjunction w[ith `On Discord Private Message`](/dev-tooling/blocks-messaging/discord/on-discord-private-message.md) blocks to reply automatically to private messages received by a Discord bot or account that we control.

`Reply Private Discord Message` blocks have two input parameters: a variable called "Author", into which should be plugged the output called "Author" of our `On Discord Private Message` block, and a string called "Message", which we should supply with whatever message we would like our Discord bot or account to reply with.

`Reply Private Discord Message` blocks also output their own Discord message ID, in case we would like to pass along a reference to our Discord message to some other block that takes a message ID as input, like an [`On Reaction Added Message`](/dev-tooling/blocks-messaging/discord/on-reaction-added-message.md) block.

In the following example, we have set up our Discord connection with an account token, rather than a bot token. This means that our `On Discord Private Message` block will fire every time our Discord account receives a private message. Whenever any private message is sent to our account while this graph is running, our account will automatically reply with the message "sorry \[their username], i am away. this is a bot. 🤖".&#x20;

<figure><img src="https://i.imgur.com/92J3JOo.png" alt=""><figcaption></figcaption></figure>

Note that the "Author" output of the `On Discord Private Message` block is plugged into the `Reply Private Discord Message` block to indicate that the reply should be made to the same user that sent the original private message.

In this example, our automated response is customized to include the username of the Discord user who sent the original private message. We achieve this by constructing our message with a [`Replace String In String`](/dev-tooling/blocks/string/replace-string-in-string.md) block, and feeding the "From" output of our `On Discord Private Message` block into the "ReplaceText" input of the `Replace String In String` block.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.graphlinq.io/dev-tooling/blocks-messaging/discord/reply-private-discord-message.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
