typo
All checks were successful
PR Check / lint-and-format (pull_request) Successful in 19s

This commit is contained in:
Mylloon 2024-10-14 22:28:50 +02:00
parent ae3b7a2c0d
commit c74a04ed41
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
2 changed files with 3 additions and 3 deletions

View file

@ -3,7 +3,7 @@ import { getLocale } from "../../utils/locales";
import { userWithNickname } from "../../utils/misc";
import { showDate } from "../../utils/time";
import { RegexC, RegExpFlags } from "../../utils/regex";
import { handleAttachements } from "../../utils/events/citation";
import { handleAttachments } from "../../utils/events/citation";
/** https://discord.js.org/#/docs/discord.js/main/class/Client?scrollTo=e-messageCreate */
export default async (message: Message, client: Client) => {
@ -110,7 +110,7 @@ export default async (message: Message, client: Client) => {
// Handle attachments
if (quoted_post.attachments.size !== 0) {
handleAttachements(loc, embed, quoted_post.attachments);
handleAttachments(loc, embed, quoted_post.attachments);
}
// Description as post content

View file

@ -1,7 +1,7 @@
import { APIEmbedField, Attachment, Collection, EmbedBuilder } from "discord.js";
import { isImage } from "../misc";
export const handleAttachements = (
export const handleAttachments = (
loc: Map<string, string>,
embed: EmbedBuilder,
attachments: Collection<string, Attachment>,