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
68f89bb589
commit
1124d56603
@ -31,22 +31,22 @@ export class AnonymousGuild extends BaseGuild implements Model {
|
||||
description?: string;
|
||||
premiumSubscriptionCount?: number;
|
||||
|
||||
splashUrl(options: { size?: ImageSize, format?: ImageFormat } = { size: 128 }) {
|
||||
splashUrl(options: { size?: ImageSize; format?: ImageFormat } = { size: 128 }) {
|
||||
if (this.splashHash) {
|
||||
return formatImageUrl(
|
||||
Routes.GUILD_SPLASH(this.id, iconBigintToHash(this.splashHash)),
|
||||
options.size,
|
||||
options.format
|
||||
options.format,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
bannerUrl(options: { size?: ImageSize, format?: ImageFormat } = { size: 128 }) {
|
||||
bannerUrl(options: { size?: ImageSize; format?: ImageFormat } = { size: 128 }) {
|
||||
if (this.bannerHash) {
|
||||
return formatImageUrl(
|
||||
Routes.GUILD_BANNER(this.id, iconBigintToHash(this.bannerHash)),
|
||||
options.size,
|
||||
options.format
|
||||
options.format,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -140,13 +140,12 @@ export class Guild extends BaseGuild implements Model {
|
||||
|
||||
// TODO: edit role
|
||||
|
||||
|
||||
async deleteInvite(inviteCode: string): Promise<void> {
|
||||
await this.session.rest.runMethod<undefined>(
|
||||
this.session.rest,
|
||||
"DELETE",
|
||||
Routes.INVITE(inviteCode),
|
||||
{}
|
||||
{},
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -160,12 +160,14 @@ export class Message implements Model {
|
||||
users: options.allowedMentions?.users,
|
||||
replied_user: options.allowedMentions?.repliedUser,
|
||||
},
|
||||
message_reference: options.messageReference ? {
|
||||
message_id: options.messageReference.messageId,
|
||||
channel_id: options.messageReference.channelId,
|
||||
guild_id: options.messageReference.guildId,
|
||||
fail_if_not_exists: options.messageReference.failIfNotExists ?? true,
|
||||
} : undefined,
|
||||
message_reference: options.messageReference
|
||||
? {
|
||||
message_id: options.messageReference.messageId,
|
||||
channel_id: options.messageReference.channelId,
|
||||
guild_id: options.messageReference.guildId,
|
||||
fail_if_not_exists: options.messageReference.failIfNotExists ?? true,
|
||||
}
|
||||
: undefined,
|
||||
},
|
||||
);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user