This commit is contained in:
parent
ae3b7a2c0d
commit
c74a04ed41
2 changed files with 3 additions and 3 deletions
|
@ -3,7 +3,7 @@ import { getLocale } from "../../utils/locales";
|
||||||
import { userWithNickname } from "../../utils/misc";
|
import { userWithNickname } from "../../utils/misc";
|
||||||
import { showDate } from "../../utils/time";
|
import { showDate } from "../../utils/time";
|
||||||
import { RegexC, RegExpFlags } from "../../utils/regex";
|
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 */
|
/** https://discord.js.org/#/docs/discord.js/main/class/Client?scrollTo=e-messageCreate */
|
||||||
export default async (message: Message, client: Client) => {
|
export default async (message: Message, client: Client) => {
|
||||||
|
@ -110,7 +110,7 @@ export default async (message: Message, client: Client) => {
|
||||||
|
|
||||||
// Handle attachments
|
// Handle attachments
|
||||||
if (quoted_post.attachments.size !== 0) {
|
if (quoted_post.attachments.size !== 0) {
|
||||||
handleAttachements(loc, embed, quoted_post.attachments);
|
handleAttachments(loc, embed, quoted_post.attachments);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Description as post content
|
// Description as post content
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import { APIEmbedField, Attachment, Collection, EmbedBuilder } from "discord.js";
|
import { APIEmbedField, Attachment, Collection, EmbedBuilder } from "discord.js";
|
||||||
import { isImage } from "../misc";
|
import { isImage } from "../misc";
|
||||||
|
|
||||||
export const handleAttachements = (
|
export const handleAttachments = (
|
||||||
loc: Map<string, string>,
|
loc: Map<string, string>,
|
||||||
embed: EmbedBuilder,
|
embed: EmbedBuilder,
|
||||||
attachments: Collection<string, Attachment>,
|
attachments: Collection<string, Attachment>,
|
||||||
|
|
Loading…
Reference in a new issue