rearrange commands folder
This commit is contained in:
11
commands/api/test.js
Normal file
11
commands/api/test.js
Normal file
@@ -0,0 +1,11 @@
|
||||
const { SlashCommandBuilder } = require('discord.js');
|
||||
const torn = require('../../torn.js');
|
||||
|
||||
module.exports = {
|
||||
data: new SlashCommandBuilder()
|
||||
.setName('test')
|
||||
.setDescription('Test the Torn API'),
|
||||
async execute(interaction) {
|
||||
await interaction.reply(await torn.test());
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user