diff --git a/index.d.ts b/index.d.ts index a5991d91c..030b5eda9 100644 --- a/index.d.ts +++ b/index.d.ts @@ -74,7 +74,7 @@ declare namespace Eris { type InteractionDataOptions = { name: string; type: Constants["CommandOptionTypes"][keyof Constants["CommandOptionTypes"]]; - value?: Constants["CommandOptionTypes"][keyof Constants["CommandOptionTypes"]]; + value?: string; options?: InteractionDataOptions[]; }; diff --git a/lib/structures/Guild.js b/lib/structures/Guild.js index abf0d79b9..008a6dd15 100644 --- a/lib/structures/Guild.js +++ b/lib/structures/Guild.js @@ -355,7 +355,7 @@ class Guild extends Base { * @returns {Promise<Object>} Resolves with a commands object */ bulkEditCommands(commands) { - return this._client.createGuildCommands.call(this._client, this.id, commands); + return this._client.bulkEditGuildCommands.call(this._client, this.id, commands); } /**