xernerx 4.6.2 → 4.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -275,11 +275,16 @@ export default class CommandHandler extends Handler {
|
|
|
275
275
|
}
|
|
276
276
|
async exec(cmd, event, args, type) {
|
|
277
277
|
try {
|
|
278
|
-
if (cmd.filetype
|
|
278
|
+
if (cmd.filetype == 'SlashCommand' && (cmd?.defer?.reply ?? this.client.modules.options.slash?.defer?.reply)) {
|
|
279
279
|
await event.deferReply({
|
|
280
280
|
ephemeral: cmd.defer?.ephemeral || this.client.modules.options.slash?.defer?.ephemeral || false,
|
|
281
281
|
});
|
|
282
282
|
}
|
|
283
|
+
if (cmd.filetype == 'ContextCommand' && (cmd?.defer?.reply ?? this.client.modules.options.context?.defer?.reply)) {
|
|
284
|
+
await event.deferReply({
|
|
285
|
+
ephemeral: cmd.defer?.ephemeral || this.client.modules.options.context?.defer?.ephemeral || false,
|
|
286
|
+
});
|
|
287
|
+
}
|
|
283
288
|
if (await commandValidation(event, cmd))
|
|
284
289
|
return;
|
|
285
290
|
if (await inhibitorValidation(event, args, cmd))
|