From abe4068001d9ac3ea13f4b107e1315ac3693a38e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Serna?= Date: Thu, 4 Aug 2022 17:02:18 -0300 Subject: [PATCH] Fix Guild.edit: passing current guild id --- packages/core/src/structures/guilds.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/structures/guilds.ts b/packages/core/src/structures/guilds.ts index 781e20b..8b46e9a 100644 --- a/packages/core/src/structures/guilds.ts +++ b/packages/core/src/structures/guilds.ts @@ -1095,7 +1095,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.patch(GUILDS(), { + const guild = await this.session.rest.patch(GUILDS(this.id), { name: options.name, afk_channel_id: options.afkChannelId, afk_timeout: options.afkTimeout,