added allowed_mentions to say_lines
This commit is contained in:
parent
55e388b01a
commit
254c9b04e9
@ -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(())
|
||||
|
Loading…
Reference in New Issue
Block a user