Minor tweaks
This commit is contained in:
@@ -20,11 +20,13 @@ export default {
|
||||
option
|
||||
.setName("user")
|
||||
.setDescription("The user to force verify.")
|
||||
.setRequired(true)
|
||||
)
|
||||
.addStringOption(option =>
|
||||
option
|
||||
.setName("ign")
|
||||
.setDescription("The user's in-game name.")
|
||||
.setRequired(true)
|
||||
)
|
||||
.setDefaultMemberPermissions(PermissionFlagsBits.Administrator)
|
||||
.setContexts(InteractionContextType.Guild),
|
||||
@@ -32,8 +34,8 @@ export default {
|
||||
async execute({ interaction }) {
|
||||
await interaction.deferReply()
|
||||
|
||||
const user = interaction.options.getMember("user") as GuildMember
|
||||
const ign = interaction.options.getString("ign")
|
||||
const user = interaction.options.getMember("user")! as GuildMember
|
||||
const ign = interaction.options.getString("ign")!
|
||||
const mod = interaction.user
|
||||
|
||||
const verifyData = await db.query.verifies.findFirst({
|
||||
@@ -44,19 +46,6 @@ export default {
|
||||
return
|
||||
}
|
||||
|
||||
if (!user) {
|
||||
interaction.editReply(
|
||||
"Please provide a user to force verify.\n" +
|
||||
"This can also mean the user is not in the server."
|
||||
)
|
||||
return
|
||||
}
|
||||
|
||||
if (!ign) {
|
||||
interaction.editReply("Please provide a player's IGN.")
|
||||
return
|
||||
}
|
||||
|
||||
const username = user.user.username
|
||||
const modName = mod.username
|
||||
|
||||
|
||||
@@ -26,7 +26,6 @@ export default {
|
||||
option
|
||||
.setName("reason")
|
||||
.setDescription("The reason for removing the user.")
|
||||
.setRequired(false)
|
||||
)
|
||||
.setDefaultMemberPermissions(PermissionFlagsBits.Administrator)
|
||||
.setContexts(InteractionContextType.Guild),
|
||||
|
||||
@@ -8,11 +8,6 @@ export default async function beast(interaction: ChatInputCommandInteraction): P
|
||||
|
||||
const ign = interaction.options.getString("ign")!
|
||||
|
||||
if (!ign) {
|
||||
await interaction.editReply("Please provide a player's IGN.")
|
||||
return
|
||||
}
|
||||
|
||||
await interaction.editReply({
|
||||
embeds: [{
|
||||
description: "Fetching your uuid...",
|
||||
|
||||
@@ -41,16 +41,6 @@ export default {
|
||||
return
|
||||
}
|
||||
|
||||
if (!ign) {
|
||||
interaction.editReply({
|
||||
embeds: [{
|
||||
description: "<a:cross_a:1087808606897983539> Please provide your in-game name.",
|
||||
color: embedColor
|
||||
}]
|
||||
})
|
||||
return
|
||||
}
|
||||
|
||||
await interaction.editReply({
|
||||
embeds: [{
|
||||
description: "Fetching your uuid...",
|
||||
|
||||
Reference in New Issue
Block a user