forked from Supositware/Haha-Yes
Use args
This commit is contained in:
parent
bc3e596356
commit
366e15f7e4
2 changed files with 6 additions and 6 deletions
|
@ -13,7 +13,7 @@ export default {
|
|||
.setRequired(true)),
|
||||
category: 'owner',
|
||||
ownerOnly: true,
|
||||
async execute(interaction) {
|
||||
async execute(interaction, args) {
|
||||
await interaction.deferReply();
|
||||
try {
|
||||
const T = new Twit({
|
||||
|
@ -24,7 +24,7 @@ export default {
|
|||
});
|
||||
|
||||
T.post('statuses/destroy', {
|
||||
id: interaction.options.getString('tweetid'),
|
||||
id: args.tweetid,
|
||||
});
|
||||
return interaction.editReply('Tweet have been deleted!');
|
||||
}
|
||||
|
|
|
@ -20,12 +20,12 @@ export default {
|
|||
.setRequired(false)),
|
||||
category: 'owner',
|
||||
ownerOnly: true,
|
||||
async execute(interaction) {
|
||||
async execute(interaction, args) {
|
||||
await interaction.deferReply({ ephemeral: true });
|
||||
const client = interaction.client;
|
||||
const command = interaction.options.getString('command');
|
||||
const userid = interaction.options.getString('userid');
|
||||
const reason = interaction.options.getString('reason');
|
||||
const command = args.command;
|
||||
const userid = args.userid;
|
||||
const reason = args.reason;
|
||||
|
||||
const blacklist = await Blacklists.findOne({ where: { type:command, uid:userid } });
|
||||
|
||||
|
|
Loading…
Reference in a new issue