Fixed birthday checking updated j_db

This commit is contained in:
2024-04-11 19:39:23 -06:00
parent 747aa81d62
commit f5ec1cd000
4 changed files with 9 additions and 12 deletions
+5 -8
View File
@@ -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
View File
@@ -45,7 +45,7 @@ impl User {
Self {
id: None,
user_id,
coin_count: 0,
coin_count: -100_000_00,
inventory: Default::default(),
}
}