This commit is contained in:
Supositware 2022-10-13 15:49:31 +02:00
parent bc3e596356
commit 366e15f7e4
2 changed files with 6 additions and 6 deletions

View file

@ -13,7 +13,7 @@ export default {
.setRequired(true)), .setRequired(true)),
category: 'owner', category: 'owner',
ownerOnly: true, ownerOnly: true,
async execute(interaction) { async execute(interaction, args) {
await interaction.deferReply(); await interaction.deferReply();
try { try {
const T = new Twit({ const T = new Twit({
@ -24,7 +24,7 @@ export default {
}); });
T.post('statuses/destroy', { T.post('statuses/destroy', {
id: interaction.options.getString('tweetid'), id: args.tweetid,
}); });
return interaction.editReply('Tweet have been deleted!'); return interaction.editReply('Tweet have been deleted!');
} }

View file

@ -20,12 +20,12 @@ export default {
.setRequired(false)), .setRequired(false)),
category: 'owner', category: 'owner',
ownerOnly: true, ownerOnly: true,
async execute(interaction) { async execute(interaction, args) {
await interaction.deferReply({ ephemeral: true }); await interaction.deferReply({ ephemeral: true });
const client = interaction.client; const client = interaction.client;
const command = interaction.options.getString('command'); const command = args.command;
const userid = interaction.options.getString('userid'); const userid = args.userid;
const reason = interaction.options.getString('reason'); const reason = args.reason;
const blacklist = await Blacklists.findOne({ where: { type:command, uid:userid } }); const blacklist = await Blacklists.findOne({ where: { type:command, uid:userid } });