mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 08:33:30 +01:00
Empty array instead of undefined
This commit is contained in:
@@ -128,7 +128,7 @@ export default class Server extends Equality {
|
||||
if (user) {
|
||||
return (this.memberMap[user.id] ? this.memberMap[user.id].roles : []);
|
||||
} else {
|
||||
return null;
|
||||
return [];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user