Archived
reply modifications
This commit is contained in:
1 parent
5e1122a2ce
commit
48f5688861
1 file changed
+3
-11
+3
-11
@@ -115,11 +115,7 @@ export class Command {
|
|||||||
setTimeout(async () => {
|
setTimeout(async () => {
|
||||||
if (!interaction.replied) {
|
if (!interaction.replied) {
|
||||||
await interaction.reply({
|
await interaction.reply({
|
||||||
embeds: [
|
content: "🔄",
|
||||||
new MessageEmbed()
|
|
||||||
.setColor("#ffff00")
|
|
||||||
.setTitle("🔄"),
|
|
||||||
],
|
|
||||||
});
|
});
|
||||||
placeholdingReply = true;
|
placeholdingReply = true;
|
||||||
}
|
}
|
||||||
@@ -150,7 +146,7 @@ export class Command {
|
|||||||
);
|
);
|
||||||
} else if (typeof fnResult == "string") {
|
} else if (typeof fnResult == "string") {
|
||||||
if (interaction instanceof Message)
|
if (interaction instanceof Message)
|
||||||
await interaction?.reply(fnResult);
|
await interaction?.reply({ content: fnResult, embeds: [] });
|
||||||
else if (interaction instanceof CommandInteraction)
|
else if (interaction instanceof CommandInteraction)
|
||||||
interaction.replied
|
interaction.replied
|
||||||
? await interaction.editReply({
|
? await interaction.editReply({
|
||||||
@@ -172,11 +168,7 @@ export class Command {
|
|||||||
interaction instanceof CommandInteraction &&
|
interaction instanceof CommandInteraction &&
|
||||||
(!interaction.replied || placeholdingReply)
|
(!interaction.replied || placeholdingReply)
|
||||||
) {
|
) {
|
||||||
await interaction.reply({
|
await interaction.deleteReply();
|
||||||
embeds: [
|
|
||||||
new MessageEmbed().setColor("#00ff00").setTitle("✅"),
|
|
||||||
],
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
throw new PermissionsError(
|
throw new PermissionsError(
|
||||||
|
|||||||
Reference in new issue
Block a user