Fix image slash commands with text input

This commit is contained in:
Essem 2022-10-24 17:12:10 -05:00
parent 3662a2e51d
commit 8144a7a115
No known key found for this signature in database
GPG key ID: 7D497397CC3A2A8C
9 changed files with 14 additions and 13 deletions

View file

@ -4,7 +4,7 @@ import { cleanMessage } from "../../utils/misc.js";
class SonicCommand extends ImageCommand {
params() {
const cleanedMessage = cleanMessage(this.message, this.options.text ?? this.args.join(" "));
const cleanedMessage = cleanMessage(this.message ?? this.interaction, this.options.text ?? this.args.join(" "));
return {
text: cleanedMessage
};