replied to (fix)

daddy
Elfein Landers 2022-01-25 17:42:47 -08:00
parent c8ee19af6d
commit ffcbd4ef2b
1 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ macro_rules! create_embed {
]);
author
});
if let Some(replied_to) = $message.referenced_message {
if let (Some(guild_id), Some(replied_to)) = ($message.guild_id, $message.referenced_message) {
$embed
.title(format![
"@{}: {}",
@ -48,7 +48,7 @@ macro_rules! create_embed {
])
.url(format![
"https://discord.com/channels/{}/{}/{}",
$message.channel_id, replied_to.channel_id, replied_to.id
guild_id, $message.channel_id, replied_to.id,
]);
}
#[allow(clippy::invisible_characters)]