Add the prefix used

This commit is contained in:
Supositware 2022-11-24 21:34:54 +01:00
parent 769fecfd87
commit f5f7b48935
2 changed files with 4 additions and 0 deletions

View file

@ -75,6 +75,8 @@ export default {
} }
} }
interaction.prefix = '/';
const args = {}; const args = {};
// https://discord-api-types.dev/api/discord-api-types-v10/enum/ApplicationCommandOptionType // https://discord-api-types.dev/api/discord-api-types-v10/enum/ApplicationCommandOptionType
interaction.options.data.forEach(arg => { interaction.options.data.forEach(arg => {

View file

@ -337,6 +337,7 @@ export default {
} }
message.user = message.author; message.user = message.author;
message.isMessage = true; message.isMessage = true;
message.prefix = `${messageArray[0]} `;
let waitingmsg; let waitingmsg;
const toDelete = []; const toDelete = [];
@ -368,6 +369,7 @@ export default {
msg.delete(); msg.delete();
}); });
}; };
const args = {}; const args = {};
const argsLength = command.data.options.length; const argsLength = command.data.options.length;