mirror of
https://github.com/System-End/Discord-Bot.git
synced 2026-04-19 16:28:26 +00:00
Merge pull request #108 from OpAayush/patch-11
fixed undefined verify level bug
This commit is contained in:
commit
04d2d48089
1 changed files with 11 additions and 11 deletions
|
|
@ -2,11 +2,11 @@ const Discord = require('discord.js');
|
|||
|
||||
module.exports = async (client, interaction, args) => {
|
||||
let verifLevels = {
|
||||
"NONE": "None",
|
||||
"LOW": "Low",
|
||||
"MEDIUM": "Medium",
|
||||
"HIGH": "(╯°□°)╯︵ ┻━┻",
|
||||
"VERY_HIGH": "┻━┻ミヽ(ಠ益ಠ)ノ彡┻━┻"
|
||||
"0": "None",
|
||||
"1": "Low",
|
||||
"2": "Medium",
|
||||
"3": "(╯°□°)╯︵ ┻━┻",
|
||||
"4": "┻━┻ミヽ(ಠ益ಠ)ノ彡┻━┻"
|
||||
}
|
||||
|
||||
let region = {
|
||||
|
|
@ -28,10 +28,10 @@ module.exports = async (client, interaction, args) => {
|
|||
}
|
||||
|
||||
let tier = {
|
||||
"TIER_1": `1`,
|
||||
"TIER_2": `2`,
|
||||
"TIER_3": `3`,
|
||||
"NONE": `0`,
|
||||
"0": "None",
|
||||
"1": "TIER 1",
|
||||
"2": "TIER 2",
|
||||
"3": "**TIER 3**"
|
||||
}
|
||||
|
||||
const members = await interaction.guild.members.fetch();
|
||||
|
|
@ -64,7 +64,7 @@ module.exports = async (client, interaction, args) => {
|
|||
},
|
||||
{
|
||||
name: "Boost tier: ",
|
||||
value: `Tier ${tier[interaction.guild.premiumTier] || 'None'}`,
|
||||
value: `${tier[interaction.guild.premiumTier]}`,
|
||||
inline: true
|
||||
},
|
||||
{
|
||||
|
|
@ -137,4 +137,4 @@ module.exports = async (client, interaction, args) => {
|
|||
}, interaction)
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue