fix: always fetch reference message
This commit is contained in:
parent
76febc7c47
commit
b3c065dc51
1 changed files with 1 additions and 3 deletions
|
|
@ -208,9 +208,7 @@ impl Handler {
|
||||||
ctx.cache.message(channel_id, message_id).as_deref()
|
ctx.cache.message(channel_id, message_id).as_deref()
|
||||||
);
|
);
|
||||||
|
|
||||||
let msg = channel_id
|
let msg = channel_id.message(ctx.http(), message_id).await?;
|
||||||
.message((ctx.cache(), ctx.http()), message_id)
|
|
||||||
.await?;
|
|
||||||
|
|
||||||
if msg.author.bot() {
|
if msg.author.bot() {
|
||||||
return Ok(());
|
return Ok(());
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue