This commit is contained in:
Yuzu 2022-07-18 13:15:28 -05:00
parent 38b2a0e003
commit 77f251e5d6
2 changed files with 5 additions and 5 deletions

View File

@ -130,7 +130,7 @@ export interface GetInvite {
scheduledEventId?: Snowflake; scheduledEventId?: Snowflake;
} }
export function GUILDS(guildId?: Snowflake): string { export function GUILDS(guildId?: Snowflake): string {
if (guildId) return `/guilds/${guildId}`; if (guildId) return `/guilds/${guildId}`;
return `/guilds`; return `/guilds`;
} }

View File

@ -663,7 +663,7 @@ export class Guild extends BaseGuild implements Model {
await this.session.rest.runMethod<undefined>( await this.session.rest.runMethod<undefined>(
this.session.rest, this.session.rest,
"DELETE", "DELETE",
Routes.USER_GUILDS(this.id) Routes.USER_GUILDS(this.id),
); );
} }
@ -714,7 +714,7 @@ export class Guild extends BaseGuild implements Model {
/** /**
* ESets a new guild splash. * ESets a new guild splash.
*/ */
setSplash(splashURL: string ): Promise<Guild> { setSplash(splashURL: string): Promise<Guild> {
return this.edit({ splashURL }); return this.edit({ splashURL });
} }
@ -727,7 +727,7 @@ export class Guild extends BaseGuild implements Model {
/** /**
* Sets a new guild discovery splash image. * Sets a new guild discovery splash image.
*/ */
setDiscoverySplash(discoverySplashURL: string): Promise<Guild> { setDiscoverySplash(discoverySplashURL: string): Promise<Guild> {
return this.edit({ discoverySplashURL }); return this.edit({ discoverySplashURL });
} }