mirror of
https://github.com/danbulant/discord.js
synced 2026-07-06 11:40:41 +00:00
Webpack build for branch master: d266804953
This commit is contained in:
parent
ce68181229
commit
17ad458e85
2 changed files with 5 additions and 5 deletions
|
|
@ -5354,7 +5354,7 @@ class Emoji {
|
||||||
* .catch(console.error);
|
* .catch(console.error);
|
||||||
*/
|
*/
|
||||||
edit(data, reason) {
|
edit(data, reason) {
|
||||||
return this.client.api.guilds[this.guild.id].emojis(this.id)
|
return this.client.api.guilds[this.guild.id].emojis[this.id]
|
||||||
.patch({ data: {
|
.patch({ data: {
|
||||||
name: data.name,
|
name: data.name,
|
||||||
roles: data.roles ? data.roles.map(r => r.id ? r.id : r) : [],
|
roles: data.roles ? data.roles.map(r => r.id ? r.id : r) : [],
|
||||||
|
|
@ -8635,7 +8635,7 @@ class GuildChannel extends Channel {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return this.client.api.channels[this.id].permissions(payload.id)
|
return this.client.api.channels[this.id].permissions[payload.id]
|
||||||
.put({ data: payload, reason })
|
.put({ data: payload, reason })
|
||||||
.then(() => this);
|
.then(() => this);
|
||||||
}
|
}
|
||||||
|
|
@ -9132,7 +9132,7 @@ class OAuth2Application {
|
||||||
* @returns {OAuth2Application}
|
* @returns {OAuth2Application}
|
||||||
*/
|
*/
|
||||||
resetSecret() {
|
resetSecret() {
|
||||||
return this.client.api.oauth2.applications(this.id).reset.post()
|
return this.client.api.oauth2.applications[this.id].reset.post()
|
||||||
.then(app => new OAuth2Application(this.client, app));
|
.then(app => new OAuth2Application(this.client, app));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -9142,7 +9142,7 @@ class OAuth2Application {
|
||||||
* @returns {OAuth2Application}
|
* @returns {OAuth2Application}
|
||||||
*/
|
*/
|
||||||
resetToken() {
|
resetToken() {
|
||||||
return this.client.api.oauth2.applications(this.id).bot().reset.post()
|
return this.client.api.oauth2.applications[this.id].bot.reset.post()
|
||||||
.then(app => new OAuth2Application(this.client, Object.assign({}, this, { bot: app })));
|
.then(app => new OAuth2Application(this.client, Object.assign({}, this, { bot: app })));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
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