pull/1/head
Supositware 2 years ago
parent bc3e596356
commit 366e15f7e4

@ -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!');
} }

@ -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 } });

Loading…
Cancel
Save