some fmt fixes

This commit is contained in:
Androz2091
2020-05-26 16:17:34 +02:00
parent f43c348b6c
commit 941155045b
2 changed files with 3 additions and 4 deletions

View File

@@ -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) => {

View File

@@ -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}`;
};