fix: Guild.edit

This commit is contained in:
Yuzu 2022-07-28 12:58:38 -05:00
parent 08b8df41fa
commit be33bc5e2d
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@
"entry": "./mod.ts",
"description": "A brand new bleeding edge non bloated Discord library",
"homepage": "https://github.com/oasisjs/biscuit",
"version": "0.2.1",
"version": "0.2.2",
"releaseType": "patch",
"unstable": false,
"unlisted": false,

View File

@ -1040,7 +1040,7 @@ export class Guild extends BaseGuild implements Model {
* @returns A promise that resolves to the edited guild.
*/
async edit(options: GuildEditOptions): Promise<Guild> {
const guild = await this.session.rest.runMethod<DiscordGuild>(this.session.rest, 'PATCH', Routes.GUILDS(), {
const guild = await this.session.rest.runMethod<DiscordGuild>(this.session.rest, 'PATCH', Routes.GUILDS(this.id), {
name: options.name,
afk_channel_id: options.afkChannelId,
afk_timeout: options.afkTimeout,