Skip to content

Commit

Permalink
Ensure users are strings
Browse files Browse the repository at this point in the history
  • Loading branch information
Glazelf committed May 6, 2024
1 parent 1747e63 commit 0e421cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion affairs/birthday.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ module.exports = async (client) => {
let now = new Date();
// Birthdays are stored as string DDMM instead of being seperated by a -
if (now.getDate() === parseInt(birthday.substring(0, 2)) && (now.getMonth() + 1) === parseInt(birthday.substring(2))) {
cuties.push(member.user);
cuties.push(member.user.toString());
cutiesUsernames.push(member.user.username);
await member.roles.add(birthdayRole);
};
Expand Down

0 comments on commit 0e421cb

Please sign in to comment.