Skip to content

Instantly share code, notes, and snippets.

@NTMNathan
Last active August 18, 2020 12:54
Show Gist options
  • Save NTMNathan/a27e2fdc75b59f24468ffde8ae754121 to your computer and use it in GitHub Desktop.
Save NTMNathan/a27e2fdc75b59f24468ffde8ae754121 to your computer and use it in GitHub Desktop.
Object Literals that will help format your Server/User/Role Info Commands nicer!
let channelRateLimit = {
0: "Disabled",
5: "5 Seconds",
10: "10 Seconds",
15: "15 Seconds",
30: "30 Seconds",
60: "1 Minute",
120: "2 Minutes",
300: "5 Minutes",
600: "10 Minutes",
900: "15 Minutes",
1800: "30 Minutes",
3600: "1 Hour",
7200: "2 Hours",
21600: "6 Hours"
};
let chnltype = {
"text": "Text #️⃣",
"voice": "Voice πŸ”Š",
"news": "News πŸ“’",
"category": "Category πŸ—‚",
"store": "Store πŸ›",
"dm": "DM πŸ‘€",
"unknown": "Unknown",
};
let region = {
"brazil": "πŸ‡§πŸ‡· Brazil",
"eu-central": "πŸ‡ͺπŸ‡Ί Central Europe",
"singapore": "πŸ‡ΈπŸ‡¬ Singapore",
"us-central": "πŸ‡ΊπŸ‡Έ U.S. Central",
"sydney": "πŸ‡¦πŸ‡Ί Sydney",
"us-east": "πŸ‡ΊπŸ‡Έ U.S. East",
"us-south": "πŸ‡ΊπŸ‡Έ U.S. South",
"us-west": "πŸ‡ΊπŸ‡Έ U.S. West",
"eu-west": "πŸ‡ͺπŸ‡Ί Western Europe",
"russia": "πŸ‡·πŸ‡Ί Russia",
"hongkong": "πŸ‡­πŸ‡° Hong Kong",
"southafrica": "πŸ‡ΏπŸ‡¦ South Africa",
"japan": "πŸ‡―πŸ‡΅ Japan",
"germany": "πŸ‡©πŸ‡ͺ Germany"
};
let guildFeatures = {
"INVITE_SPLASH": "Invite Splash",
"VIP_REGIONS": "VIP Regions",
"VANITY_URL": "Vanity URL",
"VERIFIED": "Verified",
"PARTNERED": "Partnered",
"PUBLIC": "Public",
"COMMERCE": "Commerce",
"NEWS": "News",
"DISCOVERABLE": "Discoverable",
"FEATURABLE": "Featurable",
"ANIMATED_ICON": "Animated Icon",
"BANNER": "Banner",
"COMMUNITY": "Community",
"PUBLIC_DISABLED": "Private",
"ENABLED_DISCOVERABLE_BEFORE": "Enabled Discoverable Before",
"WELCOME_SCREEN_ENABLED": "Welcome Screen",
};
let verificationLevel = {
NONE: 'None',
LOW: 'Low',
MEDIUM: 'Medium',
HIGH: 'High',
VERY_HIGH: 'Highest'
};
let explicitContentFilter = {
DISABLED: 'None',
MEMBERS_WITHOUT_ROLES: 'Scan members without a role',
ALL_MEMBERS: 'Scan all members'
};
let afkChannelTimeout = {
0: "Disabled",
60: "1 Minute",
300: "5 Minutes",
900: "15 Minutes",
1800: "30 Minutes",
3600: "1 Hour"
};
let largeGuild = {
true: "Large",
false: "Not Large"
};
let mfaLevel = {
0: "Not Enabled",
1: "Enabled"
};
let flags = {
DISCORD_EMPLOYEE: 'Discord Employee βš’',
DISCORD_PARTNER: 'Discord Partner β™Ύ',
BUGHUNTER_LEVEL_1: 'Bug Hunter (Level 1) 🐞',
BUGHUNTER_LEVEL_2: 'Bug Hunter (Level 2) πŸ›',
HYPESQUAD_EVENTS: 'HypeSquad Events',
HOUSE_BRAVERY: 'House of Bravery',
HOUSE_BRILLIANCE: 'House of Brilliance',
HOUSE_BALANCE: 'House of Balance',
EARLY_SUPPORTER: 'Early Supporter',
TEAM_USER: 'Team User',
SYSTEM: 'System',
VERIFIED_BOT: 'Verified Bot',
VERIFIED_DEVELOPER: 'Verified Bot Developer
};
let userStatus = {
"online": "Online :green_circle:",
"idle": "Idle :yellow_circle:",
"dnd": "Do not Disturb :red_circle:",
"offline": "Invisible :black_circle:"
};
let botFlag = {
"true": "Yes",
"false": "No"
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment