feat(commands/administration): adding the value of the old value

- Allow to correct only and not re-type everything
This commit is contained in:
Raphael 2025-11-24 23:23:20 +01:00 committed by Raphaël
parent 9d50717163
commit 4b9124f562

View file

@ -136,6 +136,7 @@ export default {
.setCustomId('join_msg') .setCustomId('join_msg')
.setRequired(true) .setRequired(true)
.setLabel('The new message for joinning user') .setLabel('The new message for joinning user')
.setValue(guildData.joinMessage)
.setStyle(TextInputStyle.Short); .setStyle(TextInputStyle.Short);
const placeholdersDisplay = new TextInputBuilder() const placeholdersDisplay = new TextInputBuilder()
.setCustomId('placeholder') .setCustomId('placeholder')
@ -224,6 +225,7 @@ export default {
.setCustomId('leave_msg') .setCustomId('leave_msg')
.setRequired(true) .setRequired(true)
.setLabel('The new message for leavening user') .setLabel('The new message for leavening user')
.setValue(guildData.leaveMessage)
.setStyle(TextInputStyle.Short); .setStyle(TextInputStyle.Short);
const placeholdersDisplay = new TextInputBuilder() const placeholdersDisplay = new TextInputBuilder()
.setCustomId('placeholder') .setCustomId('placeholder')