From 4848e9d4242257a981bca8041dd0dd500a5c112d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Serna?= Date: Sat, 30 Jul 2022 04:37:35 -0300 Subject: [PATCH] Add guild.setIcon method --- packages/core/src/structures/guilds.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packages/core/src/structures/guilds.ts b/packages/core/src/structures/guilds.ts index b10208d..8b7fcb3 100644 --- a/packages/core/src/structures/guilds.ts +++ b/packages/core/src/structures/guilds.ts @@ -1072,6 +1072,15 @@ export class Guild extends BaseGuild implements Model { return this.edit({ discoverySplash }); } + /** + * Sets a new guild icon image. Same as Guild.edit({..., icon: 'url'}) + * @param icon - The new icon for the guild. + * @see {@link Guild} + */ + setIcon(icon: string): Promise { + return this.edit({ icon }); + } + /** * Edits a guild and returns its data. * @see {@link Guild}