clean up
This commit is contained in:
parent
9dfc3b21ff
commit
0b0779f8b7
32 changed files with 137 additions and 181 deletions
|
@ -24,7 +24,7 @@ fn find_first_image(message: &Message) -> Option<String> {
|
|||
}
|
||||
|
||||
async fn find_real_author_id(message: &Message) -> UserId {
|
||||
if let Ok(sender) = pluralkit::get_sender(message.id).await {
|
||||
if let Ok(sender) = pluralkit::sender_from(message.id).await {
|
||||
sender
|
||||
} else {
|
||||
message.author.id
|
|
@ -1,6 +1,6 @@
|
|||
use poise::serenity_prelude::{CreateEmbedAuthor, User};
|
||||
|
||||
pub mod resolve_message;
|
||||
pub mod messages;
|
||||
|
||||
pub fn embed_author_from_user(user: &User) -> CreateEmbedAuthor {
|
||||
CreateEmbedAuthor::new(user.tag()).icon_url(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue