fix(GuildEmojiManager): check for guild in methods that use it (#4886)

This commit is contained in:
Jan
2020-10-17 15:40:39 +02:00
committed by GitHub
parent 7db6978012
commit 728b3f939c
3 changed files with 8 additions and 4 deletions

View File

@@ -103,6 +103,8 @@ const Messages = {
FETCH_GROUP_DM_CHANNEL: "Bots don't have access to Group DM Channels and cannot fetch them",
MEMBER_FETCH_NONCE_LENGTH: 'Nonce length must not exceed 32 characters.',
GUILDEMOJIMANAGER_NO_GUILD: 'Method cannot be called from a Client instance.',
};
for (const [name, message] of Object.entries(Messages)) register(name, message);