mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-14 15:57:42 +02:00
Discord.js v14
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
const Command = require('../../framework/Command');
|
||||
const { PermissionFlagsBits } = require('discord.js');
|
||||
const path = require('path');
|
||||
const types = ['default', 'steve'];
|
||||
|
||||
@@ -11,7 +12,7 @@ module.exports = class CaveCommand extends Command {
|
||||
memberName: 'cave',
|
||||
description: 'Sends a Minecraft cave that blends in with the chat.',
|
||||
details: `**Types:** ${types.join(', ')}`,
|
||||
clientPermissions: ['ATTACH_FILES'],
|
||||
clientPermissions: [PermissionFlagsBits.AttachFiles],
|
||||
args: [
|
||||
{
|
||||
key: 'type',
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
const Command = require('../../framework/Command');
|
||||
const { PermissionFlagsBits } = require('discord.js');
|
||||
const path = require('path');
|
||||
const types = ['default', 'moth', 'jojo', 'spoiler', 'nitro'];
|
||||
|
||||
@@ -11,7 +12,7 @@ module.exports = class DarkLightCommand extends Command {
|
||||
memberName: 'dark-light',
|
||||
description: 'Determines whether you use dark or light theme.',
|
||||
details: `**Types:** ${types.join(', ')}`,
|
||||
clientPermissions: ['ATTACH_FILES'],
|
||||
clientPermissions: [PermissionFlagsBits.AttachFiles],
|
||||
credit: [
|
||||
{
|
||||
name: 'u/LennyMcLennington',
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
const Command = require('../../framework/Command');
|
||||
const { PermissionFlagsBits } = require('discord.js');
|
||||
const path = require('path');
|
||||
|
||||
module.exports = class EatPantCommand extends Command {
|
||||
@@ -9,7 +10,7 @@ module.exports = class EatPantCommand extends Command {
|
||||
group: 'single',
|
||||
memberName: 'eat-pant',
|
||||
description: 'Eat pant.',
|
||||
clientPermissions: ['ATTACH_FILES'],
|
||||
clientPermissions: [PermissionFlagsBits.AttachFiles],
|
||||
credit: [
|
||||
{
|
||||
name: 'u/_Ebb',
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
const Command = require('../../framework/Command');
|
||||
const { PermissionFlagsBits } = require('discord.js');
|
||||
const path = require('path');
|
||||
|
||||
module.exports = class EggsGetLaidCommand extends Command {
|
||||
@@ -9,7 +10,7 @@ module.exports = class EggsGetLaidCommand extends Command {
|
||||
group: 'single',
|
||||
memberName: 'eggs-get-laid',
|
||||
description: 'Sends the ultimate roast.',
|
||||
clientPermissions: ['ATTACH_FILES'],
|
||||
clientPermissions: [PermissionFlagsBits.AttachFiles],
|
||||
credit: [
|
||||
{
|
||||
name: 'KINMOZA!',
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
const Command = require('../../framework/Command');
|
||||
const { PermissionFlagsBits } = require('discord.js');
|
||||
const path = require('path');
|
||||
|
||||
module.exports = class FlyCommand extends Command {
|
||||
@@ -8,7 +9,7 @@ module.exports = class FlyCommand extends Command {
|
||||
group: 'single',
|
||||
memberName: 'fly',
|
||||
description: 'Sends a fake fly that looks surprisngly real.',
|
||||
clientPermissions: ['ATTACH_FILES']
|
||||
clientPermissions: [PermissionFlagsBits.AttachFiles]
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
const Command = require('../../framework/Command');
|
||||
const { PermissionFlagsBits } = require('discord.js');
|
||||
const path = require('path');
|
||||
const { delay } = require('../../util/Util');
|
||||
|
||||
@@ -14,8 +15,8 @@ module.exports = class WhereIsEverybodyCommand extends Command {
|
||||
usages: 1,
|
||||
duration: 30
|
||||
},
|
||||
clientPermissions: ['ATTACH_FILES', 'MENTION_EVERYONE'],
|
||||
userPermissions: ['MENTION_EVERYONE'],
|
||||
clientPermissions: [PermissionFlagsBits.AttachFiles, PermissionFlagsBits.MentionEveryone],
|
||||
userPermissions: [PermissionFlagsBits.MentionEveryone],
|
||||
credit: [
|
||||
{
|
||||
name: 'DreamWorks',
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
const Command = require('../../framework/Command');
|
||||
const { PermissionFlagsBits } = require('discord.js');
|
||||
const path = require('path');
|
||||
const types = ['default', 'blastyoff', 'disyoffjs', 'yoffcirius', 'yoffice', 'yofficer', 'gameyoff'];
|
||||
|
||||
@@ -9,7 +10,7 @@ module.exports = class YoffCommand extends Command {
|
||||
group: 'single',
|
||||
memberName: 'yoff',
|
||||
description: 'Posts a picture that truly defines modern art.',
|
||||
clientPermissions: ['ATTACH_FILES'],
|
||||
clientPermissions: [PermissionFlagsBits.AttachFiles],
|
||||
credit: [
|
||||
{
|
||||
name: '1Computer1',
|
||||
|
||||
Reference in New Issue
Block a user