mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-03 05:26:07 +00:00
fix: fmt
This commit is contained in:
parent
be33bc5e2d
commit
b26944e237
@ -1040,7 +1040,11 @@ export class Guild extends BaseGuild implements Model {
|
|||||||
* @returns A promise that resolves to the edited guild.
|
* @returns A promise that resolves to the edited guild.
|
||||||
*/
|
*/
|
||||||
async edit(options: GuildEditOptions): Promise<Guild> {
|
async edit(options: GuildEditOptions): Promise<Guild> {
|
||||||
const guild = await this.session.rest.runMethod<DiscordGuild>(this.session.rest, 'PATCH', Routes.GUILDS(this.id), {
|
const guild = await this.session.rest.runMethod<DiscordGuild>(
|
||||||
|
this.session.rest,
|
||||||
|
'PATCH',
|
||||||
|
Routes.GUILDS(this.id),
|
||||||
|
{
|
||||||
name: options.name,
|
name: options.name,
|
||||||
afk_channel_id: options.afkChannelId,
|
afk_channel_id: options.afkChannelId,
|
||||||
afk_timeout: options.afkTimeout,
|
afk_timeout: options.afkTimeout,
|
||||||
@ -1068,7 +1072,8 @@ export class Guild extends BaseGuild implements Model {
|
|||||||
features: options.features,
|
features: options.features,
|
||||||
description: options.description,
|
description: options.description,
|
||||||
premiumProgressBarEnabled: options.premiumProgressBarEnabled,
|
premiumProgressBarEnabled: options.premiumProgressBarEnabled,
|
||||||
});
|
},
|
||||||
|
);
|
||||||
|
|
||||||
return new Guild(this.session, guild);
|
return new Guild(this.session, guild);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user