From 254c9b04e9391ba2091476eee28310bb01b0b9f1 Mon Sep 17 00:00:00 2001 From: jude Date: Wed, 14 Oct 2020 00:19:41 +0100 Subject: [PATCH] added allowed_mentions to say_lines --- src/framework.rs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/framework.rs b/src/framework.rs index 212802e..c42feac 100644 --- a/src/framework.rs +++ b/src/framework.rs @@ -182,7 +182,11 @@ impl SendIterator for ChannelId { for line in content { if current_content.len() + line.len() > MESSAGE_CODE_LIMIT as usize { - self.say(&http, ¤t_content).await?; + self.send_message(&http, |m| { + m.allowed_mentions(|am| am.empty_parse()) + .content(¤t_content) + }) + .await?; current_content = line; } else { @@ -190,7 +194,11 @@ impl SendIterator for ChannelId { } } if !current_content.is_empty() { - self.say(&http, ¤t_content).await?; + self.send_message(&http, |m| { + m.allowed_mentions(|am| am.empty_parse()) + .content(¤t_content) + }) + .await?; } Ok(())