Update commands now change username to username (x) format

This commit is contained in:
2024-02-19 18:07:24 +01:00
parent c71386c18b
commit 96f115cf36
4 changed files with 21 additions and 5 deletions

View File

@@ -24,9 +24,12 @@ export = {
const verifyData = await verify.findOne({ userID: user.user.id })
if (!verifyData) {
await user.setNickname(`${user.user.username} (X)`, "User used the update command").catch(() => {
// Do nothing
})
await interaction.editReply({
embeds: [{
description: "You are not verified. Please run `/verify` to verify yourself",
description: "You are not verified. Please run `/verify` to verify yourself\n\n" + "Updating username to `Username (X)`",
color: embedColor,
footer: {
text: interaction.guild!.name + " | " + devMessage,