mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-02 04:56: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 });
|
||||
}
|
||||
|
||||
/**
|
||||
* 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.
|
||||
* @see {@link Guild}
|
||||
|
Loading…
x
Reference in New Issue
Block a user