Fixed birthday checking updated j_db
This commit is contained in:
@@ -78,16 +78,13 @@ pub async fn list_birthdays(ctx: &Context, msg: &Message) -> CommandResult {
|
||||
|
||||
msg_builder.push_bold_line("All the birthdays I know:");
|
||||
for birthday in birthdays {
|
||||
let guild = msg.guild(&ctx.cache).unwrap();
|
||||
|
||||
let member = guild
|
||||
.members
|
||||
.get(&UserId::from(birthday.discord_id))
|
||||
.unwrap();
|
||||
|
||||
let user_id = UserId::from(birthday.discord_id);
|
||||
|
||||
let user = user_id.to_user(&ctx.http).await?;
|
||||
|
||||
msg_builder.push_line(format!(
|
||||
"* {} {}",
|
||||
member.display_name(),
|
||||
user.name,
|
||||
birthday.birthday.format("%m-%d-%Y")
|
||||
));
|
||||
}
|
||||
|
||||
+1
-1
@@ -45,7 +45,7 @@ impl User {
|
||||
Self {
|
||||
id: None,
|
||||
user_id,
|
||||
coin_count: 0,
|
||||
coin_count: -100_000_00,
|
||||
inventory: Default::default(),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user