mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-04 14:06:07 +00:00
Add guild.setIcon method
This commit is contained in:
parent
72cbba0f3d
commit
4848e9d424
@ -1072,6 +1072,15 @@ export class Guild extends BaseGuild implements Model {
|
|||||||
return this.edit({ discoverySplash });
|
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<Guild> {
|
||||||
|
return this.edit({ icon });
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Edits a guild and returns its data.
|
* Edits a guild and returns its data.
|
||||||
* @see {@link Guild}
|
* @see {@link Guild}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user