mirror of
https://github.com/System-End/Discord-Bot.git
synced 2026-04-19 23:22:57 +00:00
Update
This commit is contained in:
parent
3fff79cda8
commit
14a1579183
44 changed files with 275 additions and 190 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -103,4 +103,4 @@ dist
|
|||
# TernJS port file
|
||||
.tern-port
|
||||
|
||||
/src/config/webhooks.json
|
||||
src/config/*
|
||||
|
|
@ -10,7 +10,9 @@ module.exports = async (client, interaction, args) => {
|
|||
|
||||
const embed = new Discord.EmbedBuilder()
|
||||
.setTitle(`📝・New feedback!`)
|
||||
.addField("User", `${interaction.user} (${interaction.user.tag})`)
|
||||
.addFields(
|
||||
{ name: "User", value: `${interaction.user} (${interaction.user.tag})`, inline: true },
|
||||
)
|
||||
.setDescription(`${feedback}`)
|
||||
.setColor(client.config.colors.normal)
|
||||
webhookClient.send({
|
||||
|
|
|
|||
|
|
@ -74,8 +74,10 @@ module.exports = async (client, interaction, args) => {
|
|||
let embedLogs = new Discord.EmbedBuilder()
|
||||
.setTitle(`📛・Badge added`)
|
||||
.setDescription(`Added a new badge to ${member} (${member.id})`)
|
||||
.addField('👤┆Added By', `${interaction.user} (${interaction.user.tag})`, true)
|
||||
.addField(`📛┆Badge`, `${badgeFlags[badge.toUpperCase()]} (${badge.toUpperCase()})`, true)
|
||||
.addFields(
|
||||
{ name: "👤┆Added By", value: `${interaction.user} (${interaction.user.tag})`, inline: true },
|
||||
{ name: `📛┆Badge`, value: `${badgeFlags[badge.toUpperCase()]} (${badge.toUpperCase()})`, inline: true },
|
||||
)
|
||||
.setColor(client.config.colors.normal)
|
||||
.setFooter(client.config.discord.footer)
|
||||
.setTimestamp();
|
||||
|
|
@ -126,8 +128,10 @@ module.exports = async (client, interaction, args) => {
|
|||
let embedLogs = new Discord.EmbedBuilder()
|
||||
.setTitle(`📛・Badge removed`)
|
||||
.setDescription(`Removed a badge from ${member} (${member.id})`)
|
||||
.addField('👤┆Removed By', `${interaction.user} (${interaction.user.tag})`, true)
|
||||
.addField(`📛┆Badge`, `${badgeFlags[badge.toUpperCase()]} (${badge.toUpperCase()})`, true)
|
||||
.addFields(
|
||||
{ name: "👤┆Removed By", value: `${interaction.user} (${interaction.user.tag})`, inline: true },
|
||||
{ name: `📛┆Badge`, value: `${badgeFlags[badge.toUpperCase()]} (${badge.toUpperCase()})`, inline: true },
|
||||
)
|
||||
.setColor(client.config.colors.normal)
|
||||
.setFooter(client.config.discord.footer)
|
||||
.setTimestamp();
|
||||
|
|
|
|||
|
|
@ -32,7 +32,9 @@ module.exports = async (client, interaction, args) => {
|
|||
let embedLogs = new Discord.EmbedBuilder()
|
||||
.setTitle(`🔨・Ban added`)
|
||||
.setDescription(`<@!${member.id}> (${member.id}) banned from the bot`)
|
||||
.addField('👤┆Banned By', `${interaction.user} (${interaction.user.tag})`, true)
|
||||
.addFields(
|
||||
{ name: "👤┆Banned By", value: `${interaction.user} (${interaction.user.tag})`, inline: true },
|
||||
)
|
||||
.setColor(client.config.colors.normal)
|
||||
.setFooter(client.config.discord.footer)
|
||||
.setTimestamp();
|
||||
|
|
@ -55,7 +57,9 @@ module.exports = async (client, interaction, args) => {
|
|||
let embedLogs = new Discord.EmbedBuilder()
|
||||
.setTitle(`🔨・Ban removed`)
|
||||
.setDescription(`<@!${member.id}> (${member.id}) unbanned from the bot`)
|
||||
.addField('👤┆Unbanned By', `${interaction.user} (${interaction.user.tag})`, true)
|
||||
.addFields(
|
||||
{ name: "👤┆Unbanned By", value: `${interaction.user} (${interaction.user.tag})`, inline: true },
|
||||
)
|
||||
.setColor(client.config.colors.normal)
|
||||
.setFooter(client.config.discord.footer)
|
||||
.setTimestamp();
|
||||
|
|
|
|||
|
|
@ -34,8 +34,10 @@ module.exports = async (client, interaction, args) => {
|
|||
let embedLogs = new Discord.EmbedBuilder()
|
||||
.setTitle(`🪙・Credits added`)
|
||||
.setDescription(`Added credits to ${user} (${user.id})`)
|
||||
.addField('👤┆Added By', `${interaction.user} (${interaction.user.tag})`, true)
|
||||
.addField(`🔢┆Amount`, `${amount}`, true)
|
||||
.addFields(
|
||||
{ name: "👤┆Added By", value: `${interaction.user} (${interaction.user.tag})`, inline: true },
|
||||
{ name: "🔢┆Amount", value: `${amount}`, inline: true },
|
||||
)
|
||||
.setColor(client.config.colors.normal)
|
||||
.setTimestamp();
|
||||
webhookClientLogs.send({
|
||||
|
|
@ -59,8 +61,10 @@ module.exports = async (client, interaction, args) => {
|
|||
let embedLogs = new Discord.EmbedBuilder()
|
||||
.setTitle(`🪙・Credits removed`)
|
||||
.setDescription(`Removed credits from ${user} (${user.id})`)
|
||||
.addField('👤┆Removed By', `${interaction.user} (${interaction.user.tag})`, true)
|
||||
.addField(`🔢┆Amount`, `${amount}`, true)
|
||||
.addFields(
|
||||
{ name: "👤┆Removed By", value: `${interaction.user} (${interaction.user.tag})`, inline: true },
|
||||
{ name: "🔢┆Amount", value: `${amount}`, inline: true },
|
||||
)
|
||||
.setColor(client.config.colors.normal)
|
||||
.setTimestamp();
|
||||
webhookClientLogs.send({
|
||||
|
|
|
|||
|
|
@ -45,8 +45,10 @@ module.exports = async (client, interaction, args) => {
|
|||
|
||||
const embed2 = new Discord.EmbedBuilder()
|
||||
.setTitle(`${interaction.user.tag} used eval command`)
|
||||
.addField("📥┇Input", `\`\`\`${code}\`\`\``)
|
||||
.addField("📤┇Output", outputResponse.substr(0, 1024))
|
||||
.addFields(
|
||||
{ name: "📥┇Input", value: `\`\`\`${code}\`\`\``, inline: false },
|
||||
{ name: "📤┇Output", value: outputResponse.substr(0, 1024), inline: false },
|
||||
)
|
||||
.setColor(client.config.colors.normal)
|
||||
.setTimestamp();
|
||||
webhookClientLogs.send({
|
||||
|
|
@ -58,7 +60,9 @@ module.exports = async (client, interaction, args) => {
|
|||
const output = new Discord.MessageAttachment(Buffer.from(outputResponse), 'output.txt');
|
||||
var embed2 = new Discord.EmbedBuilder()
|
||||
.setAuthor(client.user.username, client.user.avatarURL())
|
||||
.addField("📥┇Input", `\`\`\`${code}\`\`\``)
|
||||
.addFields(
|
||||
{ name: "📥┇Input", value: `\`\`\`${code}\`\`\``, inline: false },
|
||||
)
|
||||
.setColor(client.config.colors.succes)
|
||||
.setFooter(client.config.discord.footer)
|
||||
.setTimestamp();
|
||||
|
|
|
|||
|
|
@ -50,9 +50,11 @@ module.exports = async (client, interaction, args) => {
|
|||
let embed = new Discord.EmbedBuilder()
|
||||
.setTitle(`📻・Started radio`)
|
||||
.setDescription(`_______________ \n\nRadio has started successfully`)
|
||||
.addField('👤┆Started by', `${interaction.user} (${interaction.user.tag})`, true)
|
||||
.addField(`📺┆Channel`, `${channel} (${channel.id})`, true)
|
||||
.addField(`⚙️┆Guild`, `${interaction.guild.name} (${interaction.guild.id})`, true)
|
||||
.addFields(
|
||||
{ name: "👤┆Started By", value: `${interaction.user} (${interaction.user.tag})`, inline: true },
|
||||
{ name: "📺┆Channel", value: `${channel} (${channel.name})`, inline: true },
|
||||
{ name: "⚙️┆Guild", value: `${interaction.guild.name} (${interaction.guild.id})`, inline: true },
|
||||
)
|
||||
.setColor(client.config.colors.normal)
|
||||
.setTimestamp();
|
||||
webhookClientLogs.send({
|
||||
|
|
|
|||
|
|
@ -34,9 +34,11 @@ module.exports = async (client, interaction, args) => {
|
|||
let embed = new Discord.EmbedBuilder()
|
||||
.setTitle(`📻・Radio stopped`)
|
||||
.setDescription(`_______________ \n\nRadio has stopped successfully`)
|
||||
.addField('👤┆Stopped by', `${interaction.user} (${interaction.user.tag})`, true)
|
||||
.addField(`📺┆Channel`, `${channel} (${channel.id})`, true)
|
||||
.addField(`⚙️┆Guild`, `${interaction.guild.name} (${interaction.guild.id})`, true)
|
||||
.addFields(
|
||||
{ name: "👤┆Stopped By", value: `${interaction.user} (${interaction.user.tag})`, inline: true },
|
||||
{ name: "📺┆Channel", value: `${channel} (${channel.name})`, inline: true },
|
||||
{ name: "⚙️┆Guild", value: `${interaction.guild.name} (${interaction.guild.id})`, inline: true },
|
||||
)
|
||||
.setColor(client.config.colors.normal)
|
||||
.setTimestamp();
|
||||
webhookClientLogs.send({
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@ const mongoose = require('mongoose');
|
|||
const chalk = require('chalk');
|
||||
|
||||
async function connect() {
|
||||
mongoose.set('strictQuery', false);
|
||||
mongoose.connect(process.env.MONGO_TOKEN, {
|
||||
useNewUrlParser: true,
|
||||
useUnifiedTopology: true,
|
||||
|
|
|
|||
|
|
@ -14,10 +14,12 @@ module.exports = (client, err, command, interaction) => {
|
|||
|
||||
let embed = new Discord.EmbedBuilder()
|
||||
.setTitle(`🚨・${password}`)
|
||||
.addField("✅┇Guild", `${interaction.guild.name} (${interaction.guild.id})`)
|
||||
.addField(`💻┇Command`, `${command}`)
|
||||
.addField(`💬┇Error`, `\`\`\`${err}\`\`\``)
|
||||
.addField(`📃┇Stack error`, `\`\`\`${err.stack.substr(0, 1018)}\`\`\``)
|
||||
.addFields(
|
||||
{ name: "✅┇Guild", value: `${interaction.guild.name} (${interaction.guild.id})`},
|
||||
{ name: `💻┇Command`, value: `${command}`},
|
||||
{ name: `💬┇Error`, value: `\`\`\`${err}\`\`\``},
|
||||
{ name: `📃┇Stack error`, value: `\`\`\`${err.stack.substr(0, 1018)}\`\`\``},
|
||||
)
|
||||
.setColor(client.config.colors.normal)
|
||||
errorlog.send({
|
||||
username: `Bot errors`,
|
||||
|
|
|
|||
|
|
@ -25,11 +25,13 @@ module.exports = async (client, guild) => {
|
|||
const totalGuilds = results[0].reduce((acc, guildCount) => acc + guildCount, 0);
|
||||
const embed = new Discord.EmbedBuilder()
|
||||
.setTitle("🟢・Added to a new server!")
|
||||
.addField("Total servers:", `${totalGuilds}`, true)
|
||||
.addField("Server name", `${guild.name}`, true)
|
||||
.addField("Server ID", `${guild.id}`, true)
|
||||
.addField("Server members", `${guild.memberCount}`, true)
|
||||
.addField("Server owner", `<@!${guild.ownerId}> (${guild.ownerId})`, true)
|
||||
.addFields(
|
||||
{ name: "Total servers:", value: `${totalGuilds}`, inline: true },
|
||||
{ name: "Server name", value: `${guild.name}`, inline: true },
|
||||
{ name: "Server ID", value: `${guild.id}`, inline: true },
|
||||
{ name: "Server members", value: `${guild.memberCount}`, inline: true },
|
||||
{ name: "Server owner", value: `<@!${guild.ownerId}> (${guild.ownerId})`, inline: true },
|
||||
)
|
||||
.setThumbnail("https://cdn.discordapp.com/attachments/843487478881976381/852419422392156210/BotPartyEmote.png")
|
||||
.setColor(client.config.colors.normal)
|
||||
webhookClient.send({
|
||||
|
|
|
|||
|
|
@ -55,11 +55,13 @@ module.exports = async (client, guild) => {
|
|||
|
||||
const embed = new discord.EmbedBuilder()
|
||||
.setTitle("🔴・Removed from a server!")
|
||||
.addField("Total servers:", `${totalGuilds}`, true)
|
||||
.addField("Server name", `${guild.name}`, true)
|
||||
.addField("Server ID", `${guild.id}`, true)
|
||||
.addField("Server members", `${guild.memberCount}`, true)
|
||||
.addField("Server owner", `<@!${guild.ownerId}> (${guild.ownerId})`, true)
|
||||
.addFields(
|
||||
{ name: "Total servers:", value: `${totalGuilds}`, inline: true },
|
||||
{ name: "Server name", value: `${guild.name}`, inline: true },
|
||||
{ name: "Server ID", value: `${guild.id}`, inline: true },
|
||||
{ name: "Server members", value: `${guild.memberCount}`, inline: true },
|
||||
{ name: "Server owner", value: `<@!${guild.ownerId}> (${guild.ownerId})`, inline: true },
|
||||
)
|
||||
.setThumbnail("https://cdn.discordapp.com/attachments/843487478881976381/852419424895631370/BotSadEmote.png")
|
||||
.setColor(client.config.colors.normal)
|
||||
kickLogs.send({
|
||||
|
|
|
|||
|
|
@ -113,7 +113,7 @@ module.exports = async (client, interaction) => {
|
|||
}
|
||||
|
||||
// Reaction roles select
|
||||
if (interaction.isSelectMenu()) {
|
||||
if (interaction.isStringSelectMenu()) {
|
||||
if (interaction.customId == "reaction_select") {
|
||||
reactionSchema.findOne(
|
||||
{ Message: interaction.message.id },
|
||||
|
|
|
|||
|
|
@ -14,8 +14,10 @@ module.exports = async (client) => {
|
|||
let embed = new Discord.EmbedBuilder()
|
||||
.setTitle(`🆙・Finishing shard`)
|
||||
.setDescription(`A shard just finished`)
|
||||
.addField("🆔┆ID", `${client.shard.ids[0] + 1}/${client.options.shardCount}`, true)
|
||||
.addField(`📃┆State`, `Ready`, true)
|
||||
.addFields(
|
||||
{ name: "🆔┆ID", value: `${client.shard.ids[0] + 1}/${client.options.shardCount}`, inline: true },
|
||||
{ name: "📃┆State", value: `Ready`, inline: true },
|
||||
)
|
||||
.setColor(client.config.colors.normal)
|
||||
startLogs.send({
|
||||
username: 'Bot Logs',
|
||||
|
|
|
|||
|
|
@ -24,17 +24,17 @@ module.exports = async (client, message) => {
|
|||
let embedLogs = new Discord.EmbedBuilder()
|
||||
.setTitle(`💬・New DM message!`)
|
||||
.setDescription(`Bot has received a new DM message!`)
|
||||
.addField("👤┆Send By", `${message.author} (${message.author.tag})`, true)
|
||||
.addField(`💬┆Message`, `${message.content || "None"}`, true)
|
||||
.addFields(
|
||||
{ name: "👤┆Send By", value: `${message.author} (${message.author.tag})`, inline: true },
|
||||
{ name: `💬┆Message`, value: `${message.content || "None"}`, inline: true },
|
||||
)
|
||||
.setColor(client.config.colors.normal)
|
||||
.setTimestamp();
|
||||
|
||||
if (message.attachments.size > 0)
|
||||
embedLogs.addField(
|
||||
`📃┆Attachments`,
|
||||
`${message.attachments.first()?.url}`,
|
||||
false
|
||||
);
|
||||
embedLogs.addFields(
|
||||
{ name: `📃┆Attachments`, value: `${message.attachments.first()?.url}`, inline: false },
|
||||
)
|
||||
return dmlog.send({
|
||||
username: "Bot DM",
|
||||
embeds: [embedLogs],
|
||||
|
|
|
|||
|
|
@ -12,8 +12,10 @@ module.exports = (client, error) => {
|
|||
|
||||
let embed = new Discord.EmbedBuilder()
|
||||
.setTitle(`🚨・Voice error`)
|
||||
.addField(`Error`, `\`\`\`${error.message}\`\`\``)
|
||||
.addField(`Stack error`, `\`\`\`${error.stack}\`\`\``)
|
||||
.addFields(
|
||||
{ name: "Error", value: `\`\`\`${error.message}\`\`\``},
|
||||
{ name: `Stack error`, value: `\`\`\`${error.stack.substr(0, 1018)}\`\`\``},
|
||||
)
|
||||
.setColor(client.config.colors.normal)
|
||||
errorlog.send({
|
||||
username: `Bot errors`,
|
||||
|
|
|
|||
|
|
@ -37,7 +37,9 @@ module.exports = (client) => {
|
|||
}, interaction) {
|
||||
embed.setTitle(`${client.emotes.normal.error}・Error!`)
|
||||
embed.setDescription(`Something went wrong!`)
|
||||
embed.addField("💬┇Error comment", `\`\`\`${error}\`\`\``)
|
||||
embed.addFields(
|
||||
{ name: "💬┆Error comment", value: `\`\`\`${error}\`\`\``},
|
||||
)
|
||||
embed.setColor(client.config.colors.error)
|
||||
|
||||
return client.sendEmbed({
|
||||
|
|
@ -58,7 +60,9 @@ module.exports = (client) => {
|
|||
}, interaction) {
|
||||
embed.setTitle(`${client.emotes.normal.error}・Error!`)
|
||||
embed.setDescription(`You did not provide the correct arguments`)
|
||||
embed.addField("💬┇Required arguments", `\`\`\`${usage}\`\`\``)
|
||||
embed.addFields(
|
||||
{ name: "💬┆Required arguments", value: `\`\`\`${usage}\`\`\``},
|
||||
)
|
||||
embed.setColor(client.config.colors.error)
|
||||
|
||||
return client.sendEmbed({
|
||||
|
|
@ -80,7 +84,9 @@ module.exports = (client) => {
|
|||
}, interaction) {
|
||||
embed.setTitle(`${client.emotes.normal.error}・Error!`)
|
||||
embed.setDescription(`You don't have the right permissions`)
|
||||
embed.addField("🔑┇Required Permission", `\`\`\`${perms}\`\`\``)
|
||||
embed.addFields(
|
||||
{ name: "🔑┆Required Permission", value: `\`\`\`${perms}\`\`\``},
|
||||
)
|
||||
embed.setColor(client.config.colors.error)
|
||||
|
||||
return client.sendEmbed({
|
||||
|
|
@ -102,7 +108,9 @@ module.exports = (client) => {
|
|||
}, interaction) {
|
||||
embed.setTitle(`${client.emotes.normal.error}・Error!`)
|
||||
embed.setDescription(`I don't have the right permissions`)
|
||||
embed.addField("🔑┇Required Permission", `\`\`\`${perms}\`\`\``)
|
||||
embed.addFields(
|
||||
{ name: "🔑┆Required Permission", value: `\`\`\`${perms}\`\`\``},
|
||||
)
|
||||
embed.setColor(client.config.colors.error)
|
||||
|
||||
return client.sendEmbed({
|
||||
|
|
@ -124,7 +132,9 @@ module.exports = (client) => {
|
|||
}, interaction) {
|
||||
embed.setTitle(`${client.emotes.normal.error}・Error!`)
|
||||
embed.setDescription(`You've already done this once`)
|
||||
embed.addField("⏰┇Try again on", `<t:${time}:f>`)
|
||||
embed.addFields(
|
||||
{ name: "⏰┆Try again on", value: `<t:${time}:f>`},
|
||||
)
|
||||
embed.setColor(client.config.colors.error)
|
||||
|
||||
return client.sendEmbed({
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ const Discord = require('discord.js');
|
|||
|
||||
module.exports = async (client) => {
|
||||
client.on('interactionCreate', async (interaction) => {
|
||||
if (!interaction.isSelectMenu()) return;
|
||||
if (!interaction.isStringSelectMenu()) return;
|
||||
|
||||
if (interaction.customId == "Bot-helppanel") {
|
||||
if (interaction.values == "changelogs-Bothelp") {
|
||||
|
|
|
|||
|
|
@ -190,7 +190,7 @@ module.exports = async (client) => {
|
|||
];
|
||||
|
||||
client.on('interactionCreate', async (interaction) => {
|
||||
if (!interaction.isSelectMenu()) return;
|
||||
if (!interaction.isStringSelectMenu()) return;
|
||||
|
||||
if (interaction.customId == "Bot-helppanel") {
|
||||
if (interaction.values == "commands-Bothelp") {
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ const Discord = require('discord.js');
|
|||
|
||||
module.exports = async (client) => {
|
||||
client.on('interactionCreate', async (interaction) => {
|
||||
if (!interaction.isSelectMenu()) return;
|
||||
if (!interaction.isStringSelectMenu()) return;
|
||||
|
||||
if (interaction.customId == "Bot-helppanel") {
|
||||
if (interaction.values == "invite-Bothelp") {
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ const Discord = require('discord.js');
|
|||
|
||||
module.exports = async (client) => {
|
||||
client.on('interactionCreate', async (interaction) => {
|
||||
if (!interaction.isSelectMenu()) return;
|
||||
if (!interaction.isStringSelectMenu()) return;
|
||||
|
||||
if (interaction.customId == "Bot-helppanel") {
|
||||
if (interaction.values == "support-Bothelp") {
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ const Discord = require('discord.js');
|
|||
|
||||
module.exports = async (client) => {
|
||||
client.on('interactionCreate', async (interaction) => {
|
||||
if (!interaction.isSelectMenu()) return;
|
||||
if (!interaction.isStringSelectMenu()) return;
|
||||
|
||||
if (interaction.customId == "Bot-linkspanel") {
|
||||
if (interaction.values == "invite-linkspanel") {
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ const Discord = require('discord.js');
|
|||
|
||||
module.exports = async (client) => {
|
||||
client.on('interactionCreate', async (interaction) => {
|
||||
if (!interaction.isSelectMenu()) return;
|
||||
if (!interaction.isStringSelectMenu()) return;
|
||||
|
||||
if (interaction.customId == "Bot-linkspanel") {
|
||||
if (interaction.values == "invite2-linkspanel") {
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ const Discord = require('discord.js');
|
|||
|
||||
module.exports = async (client) => {
|
||||
client.on('interactionCreate', async (interaction) => {
|
||||
if (!interaction.isSelectMenu()) return;
|
||||
if (!interaction.isStringSelectMenu()) return;
|
||||
|
||||
if (interaction.customId == "Bot-linkspanel") {
|
||||
if (interaction.values == "community-linkspanel") {
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ const Discord = require('discord.js');
|
|||
|
||||
module.exports = async (client) => {
|
||||
client.on('interactionCreate', async (interaction) => {
|
||||
if (!interaction.isSelectMenu()) return;
|
||||
if (!interaction.isStringSelectMenu()) return;
|
||||
|
||||
if (interaction.customId == "Bot-linkspanel") {
|
||||
if (interaction.values == "support-linkspanel") {
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ const Discord = require('discord.js');
|
|||
|
||||
module.exports = async (client) => {
|
||||
client.on('interactionCreate', async (interaction) => {
|
||||
if (!interaction.isSelectMenu()) return;
|
||||
if (!interaction.isStringSelectMenu()) return;
|
||||
|
||||
if (interaction.customId == "Bot-linkspanel") {
|
||||
if (interaction.values == "top.gg-linkspanel") {
|
||||
|
|
|
|||
|
|
@ -10,19 +10,20 @@ module.exports = {
|
|||
option.setName('activity')
|
||||
.setDescription('The activity that you want')
|
||||
.setRequired(true)
|
||||
.addChoice('Betrayal.io', 'betrayal')
|
||||
.addChoice('Checkers in the Park', 'checkers')
|
||||
.addChoice('Chess in the Park', 'chess')
|
||||
.addChoice('Doodle Crew', 'doodlecrew')
|
||||
.addChoice('Fishington.io', 'fishington')
|
||||
.addChoice('Letter League', 'letterleague')
|
||||
.addChoice('Ocho', 'ocho')
|
||||
.addChoice('Watch Together', 'watchtogether')
|
||||
.addChoice('Poker Night', 'poker')
|
||||
.addChoice('Sketch Heads', 'sketchheads')
|
||||
.addChoice('Spell Cast', 'spellcast')
|
||||
.addChoice('Word Snacks', 'wordsnacks')
|
||||
.addChoice('Watch Together', 'watchtogether')
|
||||
.addChoices(
|
||||
{ name: 'Betrayal.io', value: 'betrayal' },
|
||||
{ name: 'Checkers in the Park', value: 'checkers' },
|
||||
{ name: 'Chess in the Park', value: 'chess' },
|
||||
{ name: 'Doodle Crew', value: 'doodlecrew' },
|
||||
{ name: 'Fishington.io', value: 'fishington' },
|
||||
{ name: 'Letter League', value: 'letterleague' },
|
||||
{ name: 'Ocho', value: 'ocho' },
|
||||
{ name: 'Poker Night', value: 'poker' },
|
||||
{ name: 'Sketch Heads', value: 'sketchheads' },
|
||||
{ name: 'Spell Cast', value: 'spellcast' },
|
||||
{ name: 'Word Snacks', value: 'wordsnacks' },
|
||||
{ name: 'Watch Together', value: 'watchtogether' }
|
||||
)
|
||||
)
|
||||
,
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
const { CommandInteraction, Client } = require('discord.js');
|
||||
const { SlashCommandBuilder } = require('discord.js');
|
||||
const { ChannelType } = require('discord.js/v9');
|
||||
const { SlashCommandBuilder, ChannelType } = require('discord.js');
|
||||
const Discord = require('discord.js');
|
||||
|
||||
module.exports = {
|
||||
|
|
@ -16,7 +15,7 @@ module.exports = {
|
|||
subcommand
|
||||
.setName('create')
|
||||
.setDescription('Make an announcement')
|
||||
.addChannelOption(option => option.setName('channel').setDescription('Select a channel').setRequired(true).addChannelType(ChannelType.GuildText).addChannelType(ChannelType.GuildNews))
|
||||
.addChannelOption(option => option.setName('channel').setDescription('Select a channel').setRequired(true).addChannelTypes(ChannelType.GuildText).addChannelTypes(ChannelType.GuildNews))
|
||||
.addStringOption(option => option.setName('message').setDescription('Your announcement message').setRequired(true)),
|
||||
)
|
||||
.addSubcommand(subcommand =>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
const { CommandInteraction, Client } = require('discord.js');
|
||||
const { SlashCommandBuilder } = require('discord.js');
|
||||
const { ChannelType } = require('discord.js/v9');
|
||||
const { ChannelType } = require('discord.js');
|
||||
const Discord = require('discord.js');
|
||||
|
||||
module.exports = {
|
||||
|
|
@ -38,10 +38,12 @@ module.exports = {
|
|||
option.setName('type')
|
||||
.setDescription('What do you want to do with the channel?')
|
||||
.setRequired(true)
|
||||
.addChoice('Add', 'add')
|
||||
.addChoice('Remove', 'remove')
|
||||
.addChoices(
|
||||
{ name: 'Add', value: 'add' },
|
||||
{ name: 'Remove', value: 'remove' }
|
||||
)
|
||||
)
|
||||
.addChannelOption(option => option.setName('channel').setDescription('Select a channel').setRequired(true).addChannelType(ChannelType.GuildText))
|
||||
.addChannelOption(option => option.setName('channel').setDescription('Select a channel').setRequired(true).addChannelTypes(ChannelType.GuildText))
|
||||
)
|
||||
.addSubcommandGroup(group =>
|
||||
group
|
||||
|
|
|
|||
|
|
@ -19,9 +19,11 @@ module.exports = {
|
|||
option.setName('setup')
|
||||
.setDescription('The setup that you want')
|
||||
.setRequired(true)
|
||||
.addChoice('Server logs', 'serverLogs')
|
||||
.addChoice('Level logs', 'levelLogs')
|
||||
.addChoice('Boost logs', 'boostLogs')
|
||||
.addChoices(
|
||||
{ name: 'Server logs', value: 'serverLogs' },
|
||||
{ name: 'Level logs', value: 'levelLogs' },
|
||||
{ name: 'Boost logs', value: 'boostLogs' }
|
||||
)
|
||||
)
|
||||
)
|
||||
.addSubcommand(subcommand =>
|
||||
|
|
@ -32,11 +34,13 @@ module.exports = {
|
|||
option.setName('setup')
|
||||
.setDescription('The setup that you want')
|
||||
.setRequired(true)
|
||||
.addChoice('Birthdays', 'birthdays')
|
||||
.addChoice('Chatbot', 'chatbot')
|
||||
.addChoice('Reviews', 'reviews')
|
||||
.addChoice('Suggestions', 'suggestions')
|
||||
.addChoice('Starboard', 'starboard')
|
||||
.addChoices(
|
||||
{ name: 'Birthdays', value: 'birthdays' },
|
||||
{ name: 'Chatbot', value: 'chatbot' },
|
||||
{ name: 'Reviews', value: 'reviews' },
|
||||
{ name: 'Suggestions', value: 'suggestions' },
|
||||
{ name: 'Starboard', value: 'starboard' }
|
||||
)
|
||||
)
|
||||
)
|
||||
.addSubcommand(subcommand =>
|
||||
|
|
@ -47,10 +51,12 @@ module.exports = {
|
|||
option.setName('setup')
|
||||
.setDescription('The setup that you want')
|
||||
.setRequired(true)
|
||||
.addChoice('Counting', 'counting')
|
||||
.addChoice('Guess the number', 'gtn')
|
||||
.addChoice('Guess the word', 'gtw')
|
||||
.addChoice('Word snake', 'wordsnake')
|
||||
.addChoices(
|
||||
{ name: 'Counting', value: 'counting' },
|
||||
{ name: 'Guess the number', value: 'gtn' },
|
||||
{ name: 'Guess the word', value: 'gtw' },
|
||||
{ name: 'Word snake', value: 'wordsnake' }
|
||||
)
|
||||
)
|
||||
)
|
||||
.addSubcommand(subcommand =>
|
||||
|
|
@ -61,9 +67,11 @@ module.exports = {
|
|||
option.setName('setup')
|
||||
.setDescription('The setup that you want')
|
||||
.setRequired(true)
|
||||
.addChoice('Welcome channel', 'welcomechannel')
|
||||
.addChoice('Welcome role', 'welcomerole')
|
||||
.addChoice('Leave channnel', 'leavechannel')
|
||||
.addChoices(
|
||||
{ name: 'Welcome channel', value: 'welcomechannel' },
|
||||
{ name: 'Welcome role', value: 'welcomerole' },
|
||||
{ name: 'Leave channnel', value: 'leavechannel' }
|
||||
)
|
||||
)
|
||||
)
|
||||
.addSubcommand(subcommand =>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
const { CommandInteraction, Client } = require('discord.js');
|
||||
const { SlashCommandBuilder } = require('discord.js');
|
||||
const { ChannelType } = require('discord.js/v9');
|
||||
const { ChannelType } = require('discord.js');
|
||||
const Discord = require('discord.js');
|
||||
|
||||
module.exports = {
|
||||
|
|
@ -29,7 +29,7 @@ module.exports = {
|
|||
.setName('setverify')
|
||||
.setDescription('Setup the verify panel')
|
||||
.addBooleanOption(option => option.setName('enable').setDescription('Select a boolean').setRequired(true))
|
||||
.addChannelOption(option => option.setName('channel').setDescription('Select a channel').setRequired(true).addChannelType(ChannelType.GuildText))
|
||||
.addChannelOption(option => option.setName('channel').setDescription('Select a channel').setRequired(true).addChannelTypes(ChannelType.GuildText))
|
||||
.addRoleOption(option => option.setName('role').setDescription('Select a role').setRequired(true))
|
||||
)
|
||||
.addSubcommand(subcommand =>
|
||||
|
|
@ -64,8 +64,10 @@ module.exports = {
|
|||
option.setName('type')
|
||||
.setDescription('Ticket message type')
|
||||
.setRequired(true)
|
||||
.addChoice('open', 'open')
|
||||
.addChoice('closeDM', 'close')
|
||||
.addChoices(
|
||||
{ name: 'open', value: 'open' },
|
||||
{ name: 'closeDM', value: 'close' }
|
||||
)
|
||||
)
|
||||
.addStringOption(option => option.setName("message").setDescription("Enter a message for the ticket").setRequired(true))
|
||||
)
|
||||
|
|
|
|||
|
|
@ -42,8 +42,10 @@ module.exports = {
|
|||
option.setName('type')
|
||||
.setDescription('The type of credits')
|
||||
.setRequired(true)
|
||||
.addChoice('Add', 'add')
|
||||
.addChoice('Remove', 'remove')
|
||||
.addChoices(
|
||||
{ name: 'Add', value: 'add' },
|
||||
{ name: 'Remove', value: 'remove' }
|
||||
)
|
||||
)
|
||||
.addUserOption(option => option.setName('user').setDescription('Select a user').setRequired(true))
|
||||
.addNumberOption(option => option.setName('amount').setDescription('Amount of credits').setRequired(true))
|
||||
|
|
@ -56,13 +58,15 @@ module.exports = {
|
|||
option.setName('message')
|
||||
.setDescription('Select a message')
|
||||
.setRequired(true)
|
||||
.addChoice('Information', 'information')
|
||||
.addChoice('Rules', 'rules')
|
||||
.addChoice('Applications', 'applications')
|
||||
.addChoice('Booster perks', 'boosterperks')
|
||||
.addChoice('Links', 'links')
|
||||
.addChoice('Rewards', 'rewards')
|
||||
.addChoice('Our bots', 'ourbots')
|
||||
.addChoices(
|
||||
{ name: 'Information', value: 'information' },
|
||||
{ name: 'Rules', value: 'rules' },
|
||||
{ name: 'Applications', value: 'applications' },
|
||||
{ name: 'Booster perks', value: 'boosterperks' },
|
||||
{ name: 'Links', value: 'links' },
|
||||
{ name: 'Rewards', value: 'rewards' },
|
||||
{ name: 'Our bots', value: 'ourbots' }
|
||||
)
|
||||
)
|
||||
)
|
||||
.addSubcommand(subcommand =>
|
||||
|
|
@ -78,8 +82,10 @@ module.exports = {
|
|||
option.setName('type')
|
||||
.setDescription('The type of whitelist')
|
||||
.setRequired(true)
|
||||
.addChoice('Add', 'add')
|
||||
.addChoice('Remove', 'remove')
|
||||
.addChoices(
|
||||
{ name: 'Add', value: 'add' },
|
||||
{ name: 'Remove', value: 'remove' }
|
||||
)
|
||||
)
|
||||
.addStringOption(option => option.setName('guild').setDescription('The ID of a guild').setRequired(true))
|
||||
)
|
||||
|
|
|
|||
|
|
@ -149,8 +149,10 @@ module.exports = {
|
|||
option.setName('type')
|
||||
.setDescription('The leaderboard type that you want')
|
||||
.setRequired(true)
|
||||
.addChoice('Money', 'money')
|
||||
.addChoice('Bank', 'bank')
|
||||
.addChoices(
|
||||
{name: 'Money', value: 'money'},
|
||||
{name: 'Bank', value: 'bank'}
|
||||
)
|
||||
)
|
||||
)
|
||||
,
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
const { CommandInteraction, Client } = require("discord.js");
|
||||
const { SlashCommandBuilder } = require("discord.js");
|
||||
const { ChannelType } = require("discord.js/v9");
|
||||
const { ChannelType } = require("discord.js");
|
||||
const Discord = require("discord.js");
|
||||
|
||||
module.exports = {
|
||||
|
|
@ -12,7 +12,7 @@ module.exports = {
|
|||
.setName("channel")
|
||||
.setDescription("Channel where the embed should be")
|
||||
.setRequired(true)
|
||||
.addChannelType(ChannelType.GuildText)
|
||||
.addChannelTypes(ChannelType.GuildText)
|
||||
),
|
||||
/**
|
||||
* @param {Client} client
|
||||
|
|
|
|||
|
|
@ -41,9 +41,11 @@ module.exports = {
|
|||
option.setName('option')
|
||||
.setDescription('Choose what you want')
|
||||
.setRequired(true)
|
||||
.addChoice('🪨 Rock', 'rock')
|
||||
.addChoice('📃 Paper', 'paper')
|
||||
.addChoice('✂️ Scissors', 'scissors')
|
||||
.addChoices(
|
||||
{ name: '🪨 Rock', value: 'rock' },
|
||||
{ name: '📃 Paper', value: 'paper' },
|
||||
{ name: '✂️ Scissors', value: 'scissors' }
|
||||
)
|
||||
)
|
||||
)
|
||||
.addSubcommand(subcommand =>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
const { CommandInteraction, Client } = require('discord.js');
|
||||
const { SlashCommandBuilder } = require('discord.js');
|
||||
const { ChannelType } = require('discord.js/v9');
|
||||
const { ChannelType } = require('discord.js');
|
||||
const Discord = require('discord.js');
|
||||
const ms = require('ms');
|
||||
|
||||
|
|
@ -17,7 +17,7 @@ module.exports = {
|
|||
subcommand
|
||||
.setName('start')
|
||||
.setDescription('Start a giveaway')
|
||||
.addChannelOption(option => option.setName('channel').setDescription('Channel where the giveaway should be').setRequired(true).addChannelType(ChannelType.GuildText))
|
||||
.addChannelOption(option => option.setName('channel').setDescription('Channel where the giveaway should be').setRequired(true).addChannelTypes(ChannelType.GuildText))
|
||||
.addStringOption(option => option.setName('duration').setDescription('Duration of the giveaway').setRequired(true))
|
||||
.addNumberOption(option => option.setName('winners').setDescription('The number of giveaway winners').setRequired(true))
|
||||
.addStringOption(option => option.setName('prize').setDescription('The giveaway prize').setRequired(true)),
|
||||
|
|
@ -26,7 +26,7 @@ module.exports = {
|
|||
subcommand
|
||||
.setName('drop')
|
||||
.setDescription('Start a drop giveaway')
|
||||
.addChannelOption(option => option.setName('channel').setDescription('Channel where the giveaway should be').setRequired(true).addChannelType(ChannelType.GuildText))
|
||||
.addChannelOption(option => option.setName('channel').setDescription('Channel where the giveaway should be').setRequired(true).addChannelTypes(ChannelType.GuildText))
|
||||
.addStringOption(option => option.setName('duration').setDescription('Duration of the giveaway').setRequired(true))
|
||||
.addNumberOption(option => option.setName('winners').setDescription('The number of giveaway winners').setRequired(true))
|
||||
.addStringOption(option => option.setName('prize').setDescription('The giveaway prize').setRequired(true)),
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
const { CommandInteraction, Client } = require('discord.js');
|
||||
const { SlashCommandBuilder } = require('discord.js');
|
||||
const { ChannelType } = require('discord.js/v9');
|
||||
const { ChannelType } = require('discord.js');
|
||||
|
||||
module.exports = {
|
||||
|
||||
|
|
@ -256,7 +256,7 @@ module.exports = {
|
|||
)
|
||||
.addSubcommand((subcommand) =>
|
||||
subcommand.setName('image').setDescription('Show a image in an embed')
|
||||
.addChannelOption(option => option.setName('channel').setDescription('Channel where the embed should be').setRequired(true).addChannelType(ChannelType.GuildText))
|
||||
.addChannelOption(option => option.setName('channel').setDescription('Channel where the embed should be').setRequired(true).addChannelTypes(ChannelType.GuildText))
|
||||
.addStringOption(option => option.setName('image-url').setDescription('Enter a image url').setRequired(true))
|
||||
)
|
||||
.addSubcommand((subcommand) =>
|
||||
|
|
|
|||
|
|
@ -11,15 +11,17 @@ module.exports = {
|
|||
option.setName('message')
|
||||
.setDescription('Select a message')
|
||||
.setRequired(true)
|
||||
.addChoice('Information', 'information')
|
||||
.addChoice('Rules', 'rules')
|
||||
.addChoice('Applications', 'applications')
|
||||
.addChoice('Helpdesk', 'helpdesk')
|
||||
.addChoice('Network', 'network')
|
||||
.addChoice('Bot-Info', 'botinfo')
|
||||
.addChoice('Bot-Badges', 'badges')
|
||||
.addChoice('Bot-Béta', 'beta')
|
||||
.addChoice('Bot-Credits', 'credits')
|
||||
.addChoices(
|
||||
{ name: 'Information', value: 'information' },
|
||||
{ name: 'Rules', value: 'rules' },
|
||||
{ name: 'Applications', value: 'applications' },
|
||||
{ name: 'Helpdesk', value: 'helpdesk' },
|
||||
{ name: 'Network', value: 'network' },
|
||||
{ name: 'Bot-Info', value: 'botinfo' },
|
||||
{ name: 'Bot-Badges', value: 'badges' },
|
||||
{ name: 'Bot-Béta', value: 'beta' },
|
||||
{ name: 'Bot-Credits', value: 'credits' }
|
||||
)
|
||||
)
|
||||
,
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
const { CommandInteraction, Client } = require('discord.js');
|
||||
const { SlashCommandBuilder } = require('discord.js');
|
||||
const { ChannelType } = require('discord.js/v9');
|
||||
const { ChannelType } = require('discord.js');
|
||||
const Discord = require('discord.js');
|
||||
|
||||
module.exports = {
|
||||
|
|
@ -48,7 +48,7 @@ module.exports = {
|
|||
subcommand
|
||||
.setName('lock')
|
||||
.setDescription('Lock a channel')
|
||||
.addChannelOption(option => option.setName('channel').setDescription('Select a channel').addChannelType(ChannelType.GuildText))
|
||||
.addChannelOption(option => option.setName('channel').setDescription('Select a channel').addChannelTypes(ChannelType.GuildText))
|
||||
)
|
||||
.addSubcommand(subcommand =>
|
||||
subcommand
|
||||
|
|
@ -87,7 +87,7 @@ module.exports = {
|
|||
subcommand
|
||||
.setName('unlock')
|
||||
.setDescription('Unlock a channel')
|
||||
.addChannelOption(option => option.setName('channel').setDescription('Select a channel').addChannelType(ChannelType.GuildText))
|
||||
.addChannelOption(option => option.setName('channel').setDescription('Select a channel').addChannelTypes(ChannelType.GuildText))
|
||||
)
|
||||
.addSubcommand(subcommand =>
|
||||
subcommand
|
||||
|
|
|
|||
|
|
@ -19,10 +19,12 @@ module.exports = {
|
|||
option.setName('level')
|
||||
.setDescription('The level of the bassboost')
|
||||
.setRequired(true)
|
||||
.addChoice('0', '0')
|
||||
.addChoice('1', '1')
|
||||
.addChoice('2', '2')
|
||||
.addChoice('3', '3')
|
||||
.addChoices(
|
||||
{ name: '0', value: '0' },
|
||||
{ name: '1', value: '1' },
|
||||
{ name: '2', value: '2' },
|
||||
{ name: '3', value: '3' }
|
||||
)
|
||||
)
|
||||
)
|
||||
.addSubcommand(subcommand =>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
const { CommandInteraction, Client } = require('discord.js');
|
||||
const { SlashCommandBuilder } = require('discord.js');
|
||||
const { ChannelType } = require('discord.js/v9');
|
||||
const { ChannelType } = require('discord.js');
|
||||
const Discord = require('discord.js');
|
||||
|
||||
module.exports = {
|
||||
|
|
@ -36,14 +36,14 @@ module.exports = {
|
|||
.setName('button')
|
||||
.setDescription('Show all reaction roles with buttons')
|
||||
.addStringOption(option => option.setName('category').setDescription('Category name for your reaction roles group').setRequired(true))
|
||||
.addChannelOption(option => option.setName('channel').setDescription('Channel where the reaction roles should come').addChannelType(ChannelType.GuildText))
|
||||
.addChannelOption(option => option.setName('channel').setDescription('Channel where the reaction roles should come').addChannelTypes(ChannelType.GuildText))
|
||||
)
|
||||
.addSubcommand(subcommand =>
|
||||
subcommand
|
||||
.setName('menu')
|
||||
.setDescription('Show all reaction roles in a menu')
|
||||
.addStringOption(option => option.setName('category').setDescription('Category name for your reaction roles group').setRequired(true))
|
||||
.addChannelOption(option => option.setName('channel').setDescription('Channel where the reaction roles should come').addChannelType(ChannelType.GuildText))
|
||||
.addChannelOption(option => option.setName('channel').setDescription('Channel where the reaction roles should come').addChannelTypes(ChannelType.GuildText))
|
||||
)
|
||||
,
|
||||
|
||||
|
|
|
|||
|
|
@ -15,8 +15,10 @@ module.exports = {
|
|||
option.setName('type')
|
||||
.setDescription('The type of your report')
|
||||
.setRequired(true)
|
||||
.addChoice('Bug', 'bug')
|
||||
.addChoice('User', 'user')
|
||||
.addChoices(
|
||||
{ name: 'Bug', value: 'bug' },
|
||||
{ name: 'User', value: 'user' }
|
||||
)
|
||||
)
|
||||
.addStringOption(option =>
|
||||
option.setName('description')
|
||||
|
|
@ -38,8 +40,10 @@ module.exports = {
|
|||
if (type == "bug") {
|
||||
const embed = new Discord.EmbedBuilder()
|
||||
.setTitle(`📣・New bug report!`)
|
||||
.addField("Report category", "Bug", true)
|
||||
.addField("Submitted by", `${interaction.user.tag}`, true)
|
||||
.addFields(
|
||||
{ name: "Report category", value: "Bug", inline: true },
|
||||
{ name: "Submitted by", value: `${interaction.user.tag}`, inline: true },
|
||||
)
|
||||
.setDescription(`${desc}`)
|
||||
.setColor(client.config.colors.normal)
|
||||
webhookClient.send({
|
||||
|
|
@ -55,8 +59,10 @@ module.exports = {
|
|||
else if (type == "user") {
|
||||
const embed = new Discord.EmbedBuilder()
|
||||
.setTitle(`📣・New user report!`)
|
||||
.addField("Report category", "User", true)
|
||||
.addField("Submitted by", `${interaction.user.tag}`, true)
|
||||
.addFields(
|
||||
{ name: "Report category", value: "User", inline: true },
|
||||
{ name: "Submitted by", value: `${interaction.user.tag}`, inline: true },
|
||||
)
|
||||
.setDescription(`${desc}`)
|
||||
.setColor(client.config.colors.normal)
|
||||
webhookClient.send({
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
const { CommandInteraction, Client } = require('discord.js');
|
||||
const { SlashCommandBuilder } = require('discord.js');
|
||||
const { ChannelType } = require('discord.js/v9');
|
||||
const { ChannelType } = require('discord.js');
|
||||
const Discord = require('discord.js');
|
||||
|
||||
module.exports = {
|
||||
|
|
@ -16,16 +16,16 @@ module.exports = {
|
|||
subcommand
|
||||
.setName('tickets')
|
||||
.setDescription('Setup the tickets')
|
||||
.addChannelOption(option => option.setName('category').setDescription('Select a category where the tickets should come in').setRequired(true).addChannelType(ChannelType.GuildCategory))
|
||||
.addChannelOption(option => option.setName('category').setDescription('Select a category where the tickets should come in').setRequired(true).addChannelTypes(ChannelType.GuildCategory))
|
||||
.addRoleOption(option => option.setName('role').setDescription('Select the support role').setRequired(true))
|
||||
.addChannelOption(option => option.setName('channel').setDescription('The channel for the ticket panel').setRequired(true).addChannelType(ChannelType.GuildText))
|
||||
.addChannelOption(option => option.setName('logs').setDescription('The channel for the ticket logs').setRequired(true).addChannelType(ChannelType.GuildText))
|
||||
.addChannelOption(option => option.setName('channel').setDescription('The channel for the ticket panel').setRequired(true).addChannelTypes(ChannelType.GuildText))
|
||||
.addChannelOption(option => option.setName('logs').setDescription('The channel for the ticket logs').setRequired(true).addChannelTypes(ChannelType.GuildText))
|
||||
)
|
||||
.addSubcommand(subcommand =>
|
||||
subcommand
|
||||
.setName('customvoice')
|
||||
.setDescription('Setup the custom voice channels')
|
||||
.addChannelOption(option => option.setName('category').setDescription('Select a category where the channels come in').setRequired(true).addChannelType(ChannelType.GuildCategory))
|
||||
.addChannelOption(option => option.setName('category').setDescription('Select a category where the channels come in').setRequired(true).addChannelTypes(ChannelType.GuildCategory))
|
||||
.addStringOption(option => option.setName('channelname').setDescription('The template for the channel names').setRequired(true))
|
||||
)
|
||||
.addSubcommand(subcommand =>
|
||||
|
|
@ -36,11 +36,13 @@ module.exports = {
|
|||
option.setName('setup')
|
||||
.setDescription('The setup that you want')
|
||||
.setRequired(true)
|
||||
.addChoice('Server logs', 'serverLogs')
|
||||
.addChoice('Level logs', 'levelLogs')
|
||||
.addChoice('Boost logs', 'boostLogs')
|
||||
.addChoices(
|
||||
{ name: 'Server logs', value: 'serverLogs' },
|
||||
{ name: 'Level logs', value: 'levelLogs' },
|
||||
{ name: 'Boost logs', value: 'boostLogs' }
|
||||
)
|
||||
)
|
||||
.addChannelOption(option => option.setName('channel').setDescription('The channel for the logs').setRequired(true).addChannelType(ChannelType.GuildText))
|
||||
.addChannelOption(option => option.setName('channel').setDescription('The channel for the logs').setRequired(true).addChannelTypes(ChannelType.GuildText))
|
||||
)
|
||||
.addSubcommand(subcommand =>
|
||||
subcommand
|
||||
|
|
@ -50,13 +52,15 @@ module.exports = {
|
|||
option.setName('setup')
|
||||
.setDescription('The setup that you want')
|
||||
.setRequired(true)
|
||||
.addChoice('Birthdays', 'birthdays')
|
||||
.addChoice('Chatbot', 'chatbot')
|
||||
.addChoice('Reviews', 'reviews')
|
||||
.addChoice('Suggestions', 'suggestions')
|
||||
.addChoice('Starboard', 'starboard')
|
||||
.addChoices(
|
||||
{ name: 'Birthdays', value: 'birthdays' },
|
||||
{ name: 'Chatbot', value: 'chatbot' },
|
||||
{ name: 'Reviews', value: 'reviews' },
|
||||
{ name: 'Suggestions', value: 'suggestions' },
|
||||
{ name: 'Starboard', value: 'starboard' }
|
||||
)
|
||||
)
|
||||
.addChannelOption(option => option.setName('channel').setDescription('The channel for the fun').setRequired(true).addChannelType(ChannelType.GuildText))
|
||||
.addChannelOption(option => option.setName('channel').setDescription('The channel for the fun').setRequired(true).addChannelTypes(ChannelType.GuildText))
|
||||
)
|
||||
.addSubcommand(subcommand =>
|
||||
subcommand
|
||||
|
|
@ -66,12 +70,14 @@ module.exports = {
|
|||
option.setName('setup')
|
||||
.setDescription('The setup that you want')
|
||||
.setRequired(true)
|
||||
.addChoice('Counting', 'counting')
|
||||
.addChoice('Guess the number', 'gtn')
|
||||
.addChoice('Guess the word', 'gtw')
|
||||
.addChoice('Word snake', 'wordsnake')
|
||||
.addChoices(
|
||||
{ name: 'Counting', value: 'counting' },
|
||||
{ name: 'Guess the number', value: 'gtn' },
|
||||
{ name: 'Guess the word', value: 'gtw' },
|
||||
{ name: 'Word snake', value: 'wordsnake' }
|
||||
)
|
||||
)
|
||||
.addChannelOption(option => option.setName('channel').setDescription('The channel for the game').setRequired(true).addChannelType(ChannelType.GuildText))
|
||||
.addChannelOption(option => option.setName('channel').setDescription('The channel for the game').setRequired(true).addChannelTypes(ChannelType.GuildText))
|
||||
)
|
||||
.addSubcommand(subcommand =>
|
||||
subcommand
|
||||
|
|
@ -81,10 +87,12 @@ module.exports = {
|
|||
option.setName('setup')
|
||||
.setDescription('The setup that you want')
|
||||
.setRequired(true)
|
||||
.addChoice('Welcome channel', 'welcomechannel')
|
||||
.addChoice('Leave channnel', 'leavechannel')
|
||||
.addChoices(
|
||||
{ name: 'Welcome channel', value: 'welcomechannel' },
|
||||
{ name: 'Leave channnel', value: 'leavechannel' }
|
||||
)
|
||||
)
|
||||
.addChannelOption(option => option.setName('channel').setDescription('The channel that you want').setRequired(true).addChannelType(ChannelType.GuildText))
|
||||
.addChannelOption(option => option.setName('channel').setDescription('The channel that you want').setRequired(true).addChannelTypes(ChannelType.GuildText))
|
||||
)
|
||||
.addSubcommand(subcommand =>
|
||||
subcommand
|
||||
|
|
@ -107,22 +115,24 @@ module.exports = {
|
|||
option.setName('setup')
|
||||
.setDescription('The setup that you want')
|
||||
.setRequired(true)
|
||||
.addChoice('Tickets', 'tickets')
|
||||
.addChoice('Custom voice', 'customvoice')
|
||||
.addChoice('Server logs', 'serverlogs')
|
||||
.addChoice('Level logs', 'levellogs')
|
||||
.addChoice('Boost logs', 'boostlogs')
|
||||
.addChoice('Birthdays', 'birthdays')
|
||||
.addChoice('Chatbot', 'chatbot')
|
||||
.addChoice('Reviews', 'reviews')
|
||||
.addChoice('Suggestions', 'suggestions')
|
||||
.addChoice('Counting', 'counting')
|
||||
.addChoice('Guess the number', 'gtn')
|
||||
.addChoice('Guess the word', 'gtw')
|
||||
.addChoice('Welcome channel', 'welcomechannel')
|
||||
.addChoice('Leave channel', 'leavechannel')
|
||||
.addChoice('Welcome role', 'welcomerole')
|
||||
.addChoice('Word snake', 'wordsnake')
|
||||
.addChoices(
|
||||
{ name: 'Tickets', value: 'tickets' },
|
||||
{ name: 'Custom voice', value: 'customvoice' },
|
||||
{ name: 'Server logs', value: 'serverlogs' },
|
||||
{ name: 'Level logs', value: 'levellogs' },
|
||||
{ name: 'Boost logs', value: 'boostlogs' },
|
||||
{ name: 'Birthdays', value: 'birthdays' },
|
||||
{ name: 'Chatbot', value: 'chatbot' },
|
||||
{ name: 'Reviews', value: 'reviews' },
|
||||
{ name: 'Suggestions', value: 'suggestions' },
|
||||
{ name: 'Counting', value: 'counting' },
|
||||
{ name: 'Guess the number', value: 'gtn' },
|
||||
{ name: 'Guess the word', value: 'gtw' },
|
||||
{ name: 'Welcome channel', value: 'welcomechannel' },
|
||||
{ name: 'Leave channel', value: 'leavechannel' },
|
||||
{ name: 'Welcome role', value: 'welcomerole' },
|
||||
{ name: 'Word snake', value: 'wordsnake' }
|
||||
)
|
||||
)
|
||||
)
|
||||
,
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
const { CommandInteraction, Client } = require('discord.js');
|
||||
const { SlashCommandBuilder } = require('discord.js');
|
||||
const { ChannelType } = require('discord.js/v9');
|
||||
const { ChannelType } = require('discord.js');
|
||||
const Discord = require('discord.js');
|
||||
|
||||
module.exports = {
|
||||
|
|
@ -16,7 +16,7 @@ module.exports = {
|
|||
subcommand
|
||||
.setName('stick')
|
||||
.setDescription('Stick an message in a channel')
|
||||
.addChannelOption(option => option.setName('channel').setDescription('Select a channel').setRequired(true).addChannelType(ChannelType.GuildText))
|
||||
.addChannelOption(option => option.setName('channel').setDescription('Select a channel').setRequired(true).addChannelTypes(ChannelType.GuildText))
|
||||
.addStringOption(option => option.setName('message').setDescription('Your sticky messages').setRequired(true))
|
||||
)
|
||||
.addSubcommand(subcommand =>
|
||||
|
|
@ -28,7 +28,7 @@ module.exports = {
|
|||
subcommand
|
||||
.setName('unstick')
|
||||
.setDescription('Unstick an message in a channel')
|
||||
.addChannelOption(option => option.setName('channel').setDescription('Select a channel').setRequired(true).addChannelType(ChannelType.GuildText))
|
||||
.addChannelOption(option => option.setName('channel').setDescription('Select a channel').setRequired(true).addChannelTypes(ChannelType.GuildText))
|
||||
)
|
||||
,
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue