mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-01 08:20:08 +00:00
some fmt fixes
This commit is contained in:
@@ -27,9 +27,7 @@ export function createMessage(data: MessageCreateOptions) {
|
||||
guild: () => data.guild_id ? cache.guilds.get(data.guild_id) : undefined,
|
||||
member: () => message.guild()?.members.get(data.author.id)!,
|
||||
mentions: () =>
|
||||
data.mentions.map((mention) =>
|
||||
message.guild()?.members.get(mention.id)!
|
||||
),
|
||||
data.mentions.map((mention) => message.guild()?.members.get(mention.id)!),
|
||||
|
||||
/** Delete a message */
|
||||
delete: (reason?: string) => {
|
||||
|
||||
@@ -5,5 +5,6 @@ export const formatImageURL = (
|
||||
size: ImageSize = 128,
|
||||
format?: ImageFormats,
|
||||
) => {
|
||||
return `${url}.${format || (url.includes("/a_") ? "gif" : "jpg")}?size=${size}`;
|
||||
return `${url}.${format ||
|
||||
(url.includes("/a_") ? "gif" : "jpg")}?size=${size}`;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user