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