mirror of
https://github.com/danbulant/discord.js
synced 2026-06-18 06:01:03 +00:00
Webpack build for branch master: 234648bd2a
This commit is contained in:
parent
9c2df4a80b
commit
3b7ab63bb6
2 changed files with 7 additions and 8 deletions
|
|
@ -8625,13 +8625,12 @@ class ClientApplication extends Base {
|
|||
* @param {string} type Type of the asset. `big`, or `small`
|
||||
* @returns {Promise}
|
||||
*/
|
||||
createAsset(name, data, type) {
|
||||
return DataResolver.resolveBase64(data).then(b64 =>
|
||||
this.client.api.oauth2.applications(this.id).assets.post({ data: {
|
||||
name,
|
||||
data: b64,
|
||||
type: ClientApplicationAssetTypes[type.toUpperCase()],
|
||||
} }));
|
||||
async createAsset(name, data, type) {
|
||||
return this.client.api.oauth2.applications(this.id).assets.post({ data: {
|
||||
name,
|
||||
type: ClientApplicationAssetTypes[type.toUpperCase()],
|
||||
image: await DataResolver.resolveImage(data),
|
||||
} });
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
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