Reformat all files with Prettier
This commit is contained in:
parent
0cde0d46d2
commit
ac79eb09f5
206 changed files with 727 additions and 888 deletions
|
@ -19,7 +19,7 @@ export async function applyFiltersToMsg(
|
|||
let messageContent = savedMessage.data.content || "";
|
||||
if (savedMessage.data.attachments) messageContent += " " + JSON.stringify(savedMessage.data.attachments);
|
||||
if (savedMessage.data.embeds) {
|
||||
const embeds = (savedMessage.data.embeds as MessageEmbed[]).map(e => cloneDeep(e));
|
||||
const embeds = (savedMessage.data.embeds as MessageEmbed[]).map((e) => cloneDeep(e));
|
||||
for (const embed of embeds) {
|
||||
if (embed.type === "video") {
|
||||
// Ignore video descriptions as they're not actually shown on the embed
|
||||
|
@ -52,7 +52,7 @@ export async function applyFiltersToMsg(
|
|||
const inviteCodes = getInviteCodesInString(messageContent);
|
||||
|
||||
const invites: Array<Invite | null> = await Promise.all(
|
||||
inviteCodes.map(code => resolveInvite(pluginData.client, code)),
|
||||
inviteCodes.map((code) => resolveInvite(pluginData.client, code)),
|
||||
);
|
||||
|
||||
for (const invite of invites) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue