mirror of
https://github.com/danbulant/discord.js
synced 2026-07-06 11:40:41 +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`
|
* @param {string} type Type of the asset. `big`, or `small`
|
||||||
* @returns {Promise}
|
* @returns {Promise}
|
||||||
*/
|
*/
|
||||||
createAsset(name, data, type) {
|
async createAsset(name, data, type) {
|
||||||
return DataResolver.resolveBase64(data).then(b64 =>
|
return this.client.api.oauth2.applications(this.id).assets.post({ data: {
|
||||||
this.client.api.oauth2.applications(this.id).assets.post({ data: {
|
name,
|
||||||
name,
|
type: ClientApplicationAssetTypes[type.toUpperCase()],
|
||||||
data: b64,
|
image: await DataResolver.resolveImage(data),
|
||||||
type: ClientApplicationAssetTypes[type.toUpperCase()],
|
} });
|
||||||
} }));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
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