Skip to content

Commit 0e421cb

Browse files
committed
Ensure users are strings
1 parent 1747e63 commit 0e421cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

affairs/birthday.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ module.exports = async (client) => {
3333
let now = new Date();
3434
// Birthdays are stored as string DDMM instead of being seperated by a -
3535
if (now.getDate() === parseInt(birthday.substring(0, 2)) && (now.getMonth() + 1) === parseInt(birthday.substring(2))) {
36-
cuties.push(member.user);
36+
cuties.push(member.user.toString());
3737
cutiesUsernames.push(member.user.username);
3838
await member.roles.add(birthdayRole);
3939
};

0 commit comments

Comments
 (0)