24 |
const { Routes } = require('discord-api-types/v9'); |
const { Routes } = require('discord-api-types/v9'); |
25 |
const { config } = require('dotenv'); |
const { config } = require('dotenv'); |
26 |
const { existsSync } = require('fs'); |
const { existsSync } = require('fs'); |
|
const { Permissions, ApplicationCommand } = require('discord.js'); |
|
27 |
const path = require('path'); |
const path = require('path'); |
28 |
const { ActivityType, ApplicationCommandType } = require('discord-api-types/v10'); |
const { ApplicationCommandType } = require('discord-api-types/v10'); |
29 |
|
|
30 |
if (existsSync(path.join(__dirname, '.env'))) { |
if (existsSync(path.join(__dirname, '.env'))) { |
31 |
config(); |
config(); |
102 |
.addUserOption(option => option.setName('user').setDescription('The user')), |
.addUserOption(option => option.setName('user').setDescription('The user')), |
103 |
new SlashCommandBuilder().setName('rolelist').setDescription('List all roles or show info about a role') |
new SlashCommandBuilder().setName('rolelist').setDescription('List all roles or show info about a role') |
104 |
.addRoleOption(option => option.setName('role').setDescription('The role')) |
.addRoleOption(option => option.setName('role').setDescription('The role')) |
105 |
.addIntegerOption(option => option.setName('page').setDescription('The page number')), |
.addStringOption(option => |
106 |
|
option |
107 |
|
.setName('order') |
108 |
|
.setDescription('Order style of the list (according to the role positions)') |
109 |
|
.setChoices({ |
110 |
|
name: "Ascending", |
111 |
|
value: "a" |
112 |
|
}, { |
113 |
|
name: "Descending", |
114 |
|
value: "d" |
115 |
|
}) |
116 |
|
), |
117 |
|
|
118 |
// AUTOMATION |
// AUTOMATION |
119 |
new SlashCommandBuilder().setName('ballot').setDescription('Ballot engine') |
new SlashCommandBuilder().setName('ballot').setDescription('Ballot engine') |