Merge pull request #108 from OpAayush/patch-11

fixed undefined verify level bug
This commit is contained in:
Corwin 2023-02-14 16:58:14 +01:00 committed by GitHub
commit 04d2d48089
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)
}