my bad
This commit is contained in:
parent
830458d5d2
commit
1c1e898c9c
1 changed files with 3 additions and 11 deletions
14
src/index.ts
14
src/index.ts
|
@ -146,7 +146,7 @@ async function parseMsgForCommands(e: Message) {
|
||||||
// @ts-expect-error no why
|
// @ts-expect-error no why
|
||||||
.setDescription(err['message'] as string);
|
.setDescription(err['message'] as string);
|
||||||
|
|
||||||
e.reply({ embeds: [em] });
|
await e.reply({ embeds: [em] });
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
@ -170,18 +170,10 @@ async function parseMsgForTags(e: Message) {
|
||||||
};
|
};
|
||||||
|
|
||||||
if (tag.text) {
|
if (tag.text) {
|
||||||
e.reply({
|
await e.reply(tag.text);
|
||||||
embeds: [
|
|
||||||
new EmbedBuilder({
|
|
||||||
title: tag.name,
|
|
||||||
description: tag.text,
|
|
||||||
footer: tagRequester,
|
|
||||||
}),
|
|
||||||
],
|
|
||||||
});
|
|
||||||
} else if (tag.embed) {
|
} else if (tag.embed) {
|
||||||
const em = new EmbedBuilder(tag.embed).setFooter(tagRequester);
|
const em = new EmbedBuilder(tag.embed).setFooter(tagRequester);
|
||||||
e.reply({ embeds: [em] });
|
await e.reply({ embeds: [em] });
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue