1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-12-28 08:55:38 -05:00

Fix typo in "modify_rank_msgs" subcmd

This commit is contained in:
toast-ts 2024-01-14 17:27:47 +11:00
parent 18cbc40d79
commit e5d1dc5e9d

View File

@ -125,13 +125,13 @@ export default class Developer {
}, },
modify_rank_msgs: async()=>{ modify_rank_msgs: async()=>{
const member = interaction.options.getMember('member'); const member = interaction.options.getMember('member');
const messages = interaction.options.getInteger('new-messages-count'); const messages = interaction.options.getInteger('new-message-count');
const oldData = await client.userLevels.fetchUser(member.id); const oldData = await client.userLevels.fetchUser(member.id);
const newData = await client.userLevels.modifyUser(member.id, messages); const newData = await client.userLevels.modifyUser(member.id, messages);
await interaction.reply({embeds:[new client.embed() await interaction.reply({embeds:[new client.embed()
.setColor(client.config.embedColorGreen) .setColor(client.config.embedColorGreen)
.setDescription(MessageTool.concatMessage( .setDescription(MessageTool.concatMessage(
`Successfully modified the messages count of **${member.displayName}**`, `Successfully modified the message count of **${member.displayName}**`,
`╰ Old: **${oldData.dataValues.messages.toLocaleString('en-US')}**`, `╰ Old: **${oldData.dataValues.messages.toLocaleString('en-US')}**`,
`╰ New: **${newData.messages.toLocaleString('en-US')}**`, `╰ New: **${newData.messages.toLocaleString('en-US')}**`,
`╰ Difference: **${(newData.messages - oldData.dataValues.messages).toLocaleString('en-US')}**`, `╰ Difference: **${(newData.messages - oldData.dataValues.messages).toLocaleString('en-US')}**`,
@ -211,11 +211,11 @@ export default class Developer {
.setDescription('Modify the messages count of a member') .setDescription('Modify the messages count of a member')
.addUserOption(x=>x .addUserOption(x=>x
.setName('member') .setName('member')
.setDescription('Member to modify the messages count of') .setDescription('Member to modify the message count of')
.setRequired(true)) .setRequired(true))
.addIntegerOption(x=>x .addIntegerOption(x=>x
.setName('new-messages-count') .setName('new-message-count')
.setDescription('Replace the messages count of the member with this number') .setDescription('Replace the message count of the member with this number')
.setRequired(true) .setRequired(true)
.setMinValue(5) .setMinValue(5)
.setMaxValue(1999999999))) .setMaxValue(1999999999)))