constants

This commit is contained in:
Erik 2022-01-15 02:20:55 +02:00
parent bd970a7734
commit 890ea6191d
No known key found for this signature in database
GPG Key ID: FEFF4B220DDF5589
2 changed files with 213 additions and 2 deletions

210
src/constants/Constants.js Normal file
View File

@ -0,0 +1,210 @@
exports.UploadLimit = {
'0': 8,
'1': 8,
'2': 50,
'3': 100
};
exports.PermissionNames = {
CREATE_INSTANT_INVITE: "Create Invite",
KICK_MEMBERS: "Kick Members",
BAN_MEMBERS: "Ban Members",
ADMINISTRATOR: "Administrator",
MANAGE_CHANNELS: "Manage Channels",
MANAGE_GUILD: "Manage Server",
ADD_REACTIONS: "Add Reactions",
VIEW_AUDIT_LOG: "View Audit Log",
PRIORITY_SPEAKER: "Priority Speaker",
STREAM: "Video",
VIEW_CHANNEL: "Read Messages",
SEND_MESSAGES: "Send Messages",
SEND_TTS_MESSAGES: "Send TTS Messages",
MANAGE_MESSAGES: "Manage Messages",
EMBED_LINKS: "Embed Links",
ATTACH_FILES: "Attach Files",
READ_MESSAGE_HISTORY: "Read Message History",
MENTION_EVERYONE: "Mention @everyone",
USE_EXTERNAL_EMOJIS: "Use External Emojis",
VIEW_GUILD_INSIGHTS: "View Server Insights",
CONNECT: "Connect",
SPEAK: "Speak",
MUTE_MEMBERS: "Mute Members",
DEAFEN_MEMBERS: "Deafen Members",
MOVE_MEMBERS: "Move Members",
USE_VAD: "Use Voice Activity",
CHANGE_NICKNAME: "Change Nickname",
MANAGE_NICKNAMES: "Manage Nicknames",
MANAGE_ROLES: "Manage Roles",
MANAGE_WEBHOOKS: "Manage Webhooks",
MANAGE_EMOJIS: "Manage Emojis"
};
exports.EmbedLimits = {
embed: 6000,
title: 256,
description: 2048,
fieldObjects: 25,
fieldName: 256,
fieldValue: 1024,
footerText: 2048,
authorName: 256
};
exports.InfractionResolves = {
NOTE: ['note', 'notes'],
WARN: ['warn', 'warning', 'warns', 'warnings'],
MUTE: ['mute', 'mutes', 'tempmute', 'tempmutes'],
UNMUTE: ['unmute', 'unmutes', 'untempmute', 'untempmutes'],
KICK: ['kick', 'kicks'],
SOFTBAN: ['softban', 'softbans'],
BAN: ['ban', 'bans', 'hardban', 'hardbans'],
UNBAN: ['unban', 'unbans', 'unhardban', 'unhardbans'],
VCMUTE: ['vcmute', 'vcmutes', 'vctempmute', 'vctempmutes'],
VCUNMUTE: ['vcunmute', 'vcunmutes', 'vctempunmute', 'vctempunmutes'],
VCKICK: ['vckick', 'vckicks'],
VCBAN: ['vcban', 'vcbans'],
VCUNBAN: ['vcunban', 'vcunbans'],
PRUNE: ['prune', 'prunes', 'purge', 'purges'],
SLOWMODE: ['slowmode', 'slowmodes'],
ADDROLE: ['addrole', 'addroles', 'roleadd', 'roleadds'],
REMOVEROLE: ['removerole', 'removeroles', 'roleremove', 'roleremoves'],
NICKNAME: ['nickname', 'nicknames', 'dehoist', 'dehoists'],
LOCKDOWN: ['lockdown', 'lockdowns'],
UNLOCKDOWN: ['unlockdown', 'unlockdowns']
};
exports.InfractionTargetTypes = [
'USER',
'CHANNEL'
];
exports.InfractionDictionary = {
NOTE: {
past: 'noted',
present: 'note'
},
WARN: {
past: 'warned',
present: 'warn'
},
MUTE: {
past: 'muted',
present: 'mute'
},
UNMUTE: {
past: 'unmuted',
present: 'unmute'
},
KICK: {
past: 'kicked',
present: 'kick'
},
SOFTBAN: {
past: 'softbanned',
present: 'softban'
},
BAN: {
past: 'banned',
present: 'ban'
},
UNBAN: {
past: 'unbanned',
present: 'unban'
},
VCMUTE: {
past: 'voicemuted',
present: 'voicemute'
},
VCUNMUTE: {
past: 'unvoicemuted',
present: 'unvoicemute'
},
VCKICK: {
past: 'vckicked',
present: 'vckick'
},
VCBAN: {
past: 'voicebanned',
present: 'voiceban'
},
VCUNBAN: {
past: 'unvoicebanned',
present: 'unvoiceban'
},
PRUNE: {
past: 'pruned',
present: 'prune'
},
SLOWMODE: {
past: 'set slowmode in',
present: 'slowmode'
},
ADDROLE: {
past: 'added role to',
present: 'add role to'
},
REMOVEROLE: {
past: 'removed role from',
present: 'remove role from'
},
NICKNAME: {
past: 'nicknamed',
present: 'nickname'
},
LOCKDOWN: {
past: 'enabled lockdown in',
present: 'lockdown'
},
UNLOCKDOWN: {
past: 'disabled lockdown in',
present: 'unlockdown'
}
};
exports.InfractionOpposites = {
MUTE: 'UNMUTE',
BAN: 'UNBAN',
LOCKDOWN: 'UNLOCKDOWN',
ADDROLE: 'REMOVEROLE',
REMOVEROLE: 'ADDROLE'
};
exports.InfractionColors = {
NOTE: 0xEBEBEB,
WARN: 0xffe15c,
MUTE: 0x1f75ff,
UNMUTE: 0x5c9aff,
KICK: 0xff7a33,
SOFTBAN: 0xdb36fc,
BAN: 0xff3333,
UNBAN: 0xff5c5c,
VCMUTE: 0x1f75ff,
VCUNMUTE: 0x5c9aff,
VCKICK: 0xF9DC5C,
VCBAN: 0xff3333,
VCUNBAN: 0xff5c5c,
PRUNE: 0xdb36fc,
SLOWMODE: 0xff3333,
ADDROLE: 0xff3333,
REMOVEROLE: 0xff3333,
NICKNAME: 0xEBEBEB,
LOCKDOWN: 0xff3333,
UNLOCKDOWN: 0xff5c5c
};
exports.InfractionProperCase = {
NOTE: 'Note',
WARN: 'Warn',
UNMUTE: 'Unmute',
MUTE: 'Mute',
KICK: 'Kick',
SOFTBAN: 'Softban',
UNBAN: 'Unban',
BAN: 'Ban',
PRUNE: 'Prune',
VCKICK: 'Vckick',
SLOWMODE: 'Slowmode',
NICKNAME: 'Nickname',
ADDROLE: 'AddRole',
REMOVEROLE: 'RemoveRole'
};

View File

@ -1,5 +1,6 @@
module.exports = {
Commands: require('./Commands.json'),
Emojis: require('./Emojis.json'),
DefaultGuild: require('./defaults/DefaultGuild.json')
}
DefaultGuild: require('./defaults/DefaultGuild.json'),
Constants: require('./Constants.js')
};