From 635a22998fc70f78c8403f9eadbeeac6b12a0344 Mon Sep 17 00:00:00 2001 From: toast-ts <96593068+toast-ts@users.noreply.github.com> Date: Fri, 9 Feb 2024 14:59:32 +1100 Subject: [PATCH] Remind myself --- src/commands/dev.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/dev.ts b/src/commands/dev.ts index 8196d83..a00837c 100644 --- a/src/commands/dev.ts +++ b/src/commands/dev.ts @@ -131,6 +131,7 @@ export default class Developer { client.users.cache.get(member.id).send(`${message}\n╰ ${interaction.member.displayName}`).then(()=>int.edit(`Successfully sent a DM to **${member.user.username}** with the following message:\n\`\`\`${message}\`\`\``)).catch((e:Error)=>int.edit(`\`${e.message}\``)) }, modify_rank_msgs: async()=>{ + if (interaction.guildId !== client.config.dcServer.id) return interaction.reply({content: 'This command is only available in the main server.', ephemeral: true}); const member = interaction.options.getMember('member'); const messages = interaction.options.getInteger('new-message-count'); const oldData = await client.userLevels.fetchUser(member.id); @@ -141,7 +142,6 @@ export default class Developer { `Successfully modified the message count of **${member.displayName}**`, `╰ Old: **${oldData.dataValues.messages.toLocaleString('en-US')}**`, `╰ New: **${newData.messages.toLocaleString('en-US')}**`, - `╰ Difference: **${(newData.messages - oldData.dataValues.messages).toLocaleString('en-US')}**`, 'Although if you set the number too high or low, it will have a bigger impact on the leaderboard graph.' )) ]})