Better error message in the rules command
Add some better error message in the rules command
This commit is contained in:
commit
c799669d7d
2 changed files with 12 additions and 2 deletions
|
|
@ -55,7 +55,10 @@ public class RulesCommand implements Command {
|
||||||
}
|
}
|
||||||
}, event.getJDA(), event.getAuthor());
|
}, event.getJDA(), event.getAuthor());
|
||||||
} else {
|
} else {
|
||||||
event.getTextChannel().sendMessage(event.getMessageEditor().getMessage(MessageEditor.MessageType.NO_SELF_PERMISSION).build()).queue();
|
event.getTextChannel().sendMessage(event.getMessageEditor().getMessage(MessageEditor.MessageType.ERROR,
|
||||||
|
"commands.moderation.rules.error.permission.title",
|
||||||
|
"commands.moderation.rules.error.permission.description")
|
||||||
|
.build()).queue();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -221,7 +224,10 @@ public class RulesCommand implements Command {
|
||||||
.build()).queue();
|
.build()).queue();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
event.getTextChannel().sendMessage(event.getMessageEditor().getMessage(MessageEditor.MessageType.NO_SELF_PERMISSION).build()).queue();
|
event.getTextChannel().sendMessage(event.getMessageEditor().getMessage(MessageEditor.MessageType.ERROR,
|
||||||
|
"commands.moderation.rules.error.interact.title",
|
||||||
|
"commands.moderation.rules.error.interact.description")
|
||||||
|
.build()).queue();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -153,6 +153,10 @@ commands.moderation.rules.success.title = Successfully set the rules
|
||||||
commands.moderation.rules.success.description = I successfully send the rules in %extra%.
|
commands.moderation.rules.success.description = I successfully send the rules in %extra%.
|
||||||
commands.moderation.rules.error.message.title = Can't write messages
|
commands.moderation.rules.error.message.title = Can't write messages
|
||||||
commands.moderation.rules.error.message.description = I can not write messages in the specified channel
|
commands.moderation.rules.error.message.description = I can not write messages in the specified channel
|
||||||
|
commands.moderation.rules.error.permission.title = No permission
|
||||||
|
commands.moderation.rules.error.permission.description = To execute this command, I need the `MANAGE_ROLES` permission.
|
||||||
|
commands.moderation.rules.error.interact.title = Can't interact
|
||||||
|
commands.moderation.rules.error.interact.description = I can not interact with the specified role. Make sure my role is higher than the specified role.
|
||||||
commands.moderation.rules.help.description = Setup the rules on your Discord server
|
commands.moderation.rules.help.description = Setup the rules on your Discord server
|
||||||
commands.moderation.starboard.success.title = Successfully set the Channel\!
|
commands.moderation.starboard.success.title = Successfully set the Channel\!
|
||||||
commands.moderation.starboard.help.description = Sets the starboard channel.
|
commands.moderation.starboard.help.description = Sets the starboard channel.
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue