Skip to content

Commit

Permalink
Fixed required roles again
Browse files Browse the repository at this point in the history
  • Loading branch information
CuteNikki committed Oct 16, 2024
1 parent 0ef1404 commit 599e15a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/interactions/commands/config/reaction-roles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ async function handleRequiredRoles(
});

requiredRolesCollector.on('end', async (_, reason) => {
if (reason !== 'continue' || !requiredRoles.length) {
if (reason !== 'continue') {
await interaction
.editReply({
embeds: [new EmbedBuilder().setColor(client.colors.error).setDescription(t('reaction-roles.required-roles.none', { lng }))],
Expand Down
2 changes: 1 addition & 1 deletion src/structure/locales/de_messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
"description": "Wähle die Rollen aus, die für die Verwendung der Reaktionsrollen-Gruppe erforderlich sind.",
"info": "Du kannst ohne Auswahl einer Rolle fortfahren, indem du auf weiter drückst.",
"placeholder": "Wähle die benötigten Rollen aus",
"none": "Du hast keine Rollen ausgewählt!"
"none": "Du hast keine Rollen ausgewählt oder auf weiter gedrückt!"
},
"method": {
"description": "Bitte wähle zwischen Buttons oder Reaktionen für die Reaktionsrollen-Gruppe aus.",
Expand Down
3 changes: 2 additions & 1 deletion src/structure/locales/en_messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@
"title": "Required roles",
"description": "Select the roles that are required to use the reaction role group.",
"info": "You may proceed without selecting any roles by pressing continue.",
"placeholder": "Select the required roles"
"placeholder": "Select the required roles",
"none": "You did not select any roles or press continue!"
},
"method": {
"description": "Please choose between either buttons or reactions for the reaction role group.",
Expand Down

0 comments on commit 599e15a

Please sign in to comment.