mirror of
https://github.com/danbulant/discord.js
synced 2026-07-05 03:00:35 +00:00
Webpack build for branch master: ab5e57d94b
This commit is contained in:
parent
20c3031699
commit
defe2bc20f
2 changed files with 5 additions and 4 deletions
|
|
@ -4214,9 +4214,10 @@ class Guild {
|
||||||
if (typeof attachment === 'string' && attachment.startsWith('data:')) {
|
if (typeof attachment === 'string' && attachment.startsWith('data:')) {
|
||||||
resolve(this.client.rest.methods.createEmoji(this, attachment, name, roles));
|
resolve(this.client.rest.methods.createEmoji(this, attachment, name, roles));
|
||||||
} else {
|
} else {
|
||||||
this.client.resolver.resolveBuffer(attachment).then(data =>
|
this.client.resolver.resolveBuffer(attachment).then(data => {
|
||||||
resolve(this.client.rest.methods.createEmoji(this, data, name, roles))
|
const dataURI = this.client.resolver.resolveBase64(data);
|
||||||
);
|
resolve(this.client.rest.methods.createEmoji(this, dataURI, name, roles));
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
2
discord.master.min.js
vendored
2
discord.master.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue