allow newlines in /say
This commit is contained in:
parent
11fcf0ec6e
commit
4645f1ddaf
1 changed files with 1 additions and 0 deletions
|
@ -16,6 +16,7 @@ pub async fn say(
|
|||
#[description = "the message content"] content: String,
|
||||
) -> Result<(), Error> {
|
||||
let channel = ctx.channel_id();
|
||||
let content = content.replace("\\n", "\n");
|
||||
let message = channel.say(ctx, &content).await?;
|
||||
ctx.say("I said what you said!").await?;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue