From ecb8424f527719be4427084d63f09fd0fe19766a Mon Sep 17 00:00:00 2001 From: SpaceEEC Date: Mon, 12 Jun 2017 17:26:36 +0200 Subject: [PATCH] fixed typo in Guild#createEmoji (#1588) --- src/structures/Guild.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structures/Guild.js b/src/structures/Guild.js index 61c3d5d25..8d94b4b42 100644 --- a/src/structures/Guild.js +++ b/src/structures/Guild.js @@ -941,7 +941,7 @@ class Guild { * .catch(console.error); */ createEmoji(attachment, name, roles) { - if (typeof attahment === 'string' && attachment.startsWith('data:')) { + if (typeof attachment === 'string' && attachment.startsWith('data:')) { const data = { image: attachment, name }; if (roles) data.roles = roles.map(r => r.id ? r.id : r); return this.client.api.guilds(this.id).emojis.post({ data })