catto.js 1.2.5 → 1.2.6
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.
- package/Bot.js +2 -2
- package/package.json +1 -1
package/Bot.js
CHANGED
|
@@ -397,14 +397,14 @@ module.exports = class extends EventEmitter {
|
|
|
397
397
|
delete options.ephemeral;
|
|
398
398
|
options.flags = (options.flags || 0) | Discord.MessageFlags.Ephemeral;
|
|
399
399
|
}
|
|
400
|
-
return realReply(options);
|
|
400
|
+
return realReply.apply(this, [options]);
|
|
401
401
|
};
|
|
402
402
|
interaction.deferReply = function(options) {
|
|
403
403
|
if (typeof options === "object" && options.ephemeral) {
|
|
404
404
|
delete options.ephemeral;
|
|
405
405
|
options.flags = (options.flags || 0) | Discord.MessageFlags.Ephemeral;
|
|
406
406
|
}
|
|
407
|
-
return realDeferReply(options);
|
|
407
|
+
return realDeferReply.apply(this, [options]);
|
|
408
408
|
};
|
|
409
409
|
if (this.options.slashListener && interaction.isChatInputCommand()) {
|
|
410
410
|
var command = this.slashCommands.get(interaction.commandName);
|