mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-02 21:16:09 +00:00
formatting
This commit is contained in:
parent
482893a9ea
commit
c13d9b239f
@ -101,7 +101,7 @@ export class Member implements Model {
|
||||
let url: string;
|
||||
|
||||
if (this.user.bot) {
|
||||
return this.user.avatarURL()
|
||||
return this.user.avatarURL();
|
||||
}
|
||||
|
||||
if (!this.avatarHash) {
|
||||
@ -110,7 +110,7 @@ export class Member implements Model {
|
||||
url = Routes.USER_AVATAR(this.user.id, iconBigintToHash(this.avatarHash));
|
||||
}
|
||||
|
||||
return formatImageURL(url, options.size, options.format)
|
||||
return formatImageURL(url, options.size, options.format);
|
||||
}
|
||||
|
||||
toString() {
|
||||
|
@ -1,21 +1,17 @@
|
||||
import type {
|
||||
DiscordEmbedField,
|
||||
DiscordEmbed,
|
||||
DiscordEmbedProvider
|
||||
} from '../../vendor/external.ts';
|
||||
import type { DiscordEmbed, DiscordEmbedField, DiscordEmbedProvider } from "../../vendor/external.ts";
|
||||
|
||||
export interface EmbedFooter {
|
||||
text: string;
|
||||
iconUrl?: string;
|
||||
proxyIconUrl?: string
|
||||
proxyIconUrl?: string;
|
||||
}
|
||||
|
||||
export interface EmbedAuthor {
|
||||
name: string
|
||||
name: string;
|
||||
text?: string;
|
||||
url?: string;
|
||||
iconUrl?: string;
|
||||
proxyIconUrl?: string
|
||||
proxyIconUrl?: string;
|
||||
}
|
||||
|
||||
export interface EmbedVideo {
|
||||
@ -26,10 +22,10 @@ export interface EmbedVideo {
|
||||
}
|
||||
|
||||
export class EmbedBuilder {
|
||||
#data: DiscordEmbed
|
||||
#data: DiscordEmbed;
|
||||
constructor(data: DiscordEmbed = {}) {
|
||||
this.#data = data;
|
||||
if (!this.#data.fields) this.#data.fields = []
|
||||
if (!this.#data.fields) this.#data.fields = [];
|
||||
}
|
||||
|
||||
setAuthor(author: EmbedAuthor) {
|
||||
@ -37,7 +33,7 @@ export class EmbedBuilder {
|
||||
name: author.name,
|
||||
icon_url: author.iconUrl,
|
||||
proxy_icon_url: author.proxyIconUrl,
|
||||
url: author.url
|
||||
url: author.url,
|
||||
};
|
||||
return this;
|
||||
}
|
||||
@ -102,7 +98,7 @@ export class EmbedBuilder {
|
||||
height: video.height,
|
||||
proxy_url: video.proxyUrl,
|
||||
url: video.url,
|
||||
width: video.width
|
||||
width: video.width,
|
||||
};
|
||||
return this;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user