mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2024-11-17 20:30:58 -05:00
Fix typo in "modify_rank_msgs" subcmd
This commit is contained in:
parent
61f358e76e
commit
1884a6bd04
@ -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)))
|
||||||
|
Loading…
Reference in New Issue
Block a user