diff --git a/egg.json b/egg.json index bb02ec5..35fb5cb 100644 --- a/egg.json +++ b/egg.json @@ -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, diff --git a/packages/biscuit/structures/guilds.ts b/packages/biscuit/structures/guilds.ts index 03cd330..faace57 100644 --- a/packages/biscuit/structures/guilds.ts +++ b/packages/biscuit/structures/guilds.ts @@ -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 { - const guild = await this.session.rest.runMethod(this.session.rest, 'PATCH', Routes.GUILDS(), { + const guild = await this.session.rest.runMethod(this.session.rest, 'PATCH', Routes.GUILDS(this.id), { name: options.name, afk_channel_id: options.afkChannelId, afk_timeout: options.afkTimeout,