replied to (fix)
parent
c8ee19af6d
commit
ffcbd4ef2b
|
@ -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)]
|
||||
|
|
Loading…
Reference in New Issue