fixed typo in Guild#createEmoji (#1588)

This commit is contained in:
SpaceEEC
2017-06-12 17:26:36 +02:00
committed by Schuyler Cebulskie
parent b694ab1b80
commit ecb8424f52

View File

@@ -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 })