Merge pull request #249 from BigBotNetwork/greg-dev
Custom error message
This commit is contained in:
commit
6895e66cc0
2 changed files with 5 additions and 1 deletions
|
|
@ -96,7 +96,9 @@ public class RulesCommand implements Command {
|
|||
}, event.getJDA(), event.getAuthor());
|
||||
}, event.getJDA(), event.getAuthor());
|
||||
} else {
|
||||
event.getTextChannel().sendMessage(event.getMessageEditor().getMessage(MessageEditor.MessageType.NO_SELF_PERMISSION)
|
||||
event.getTextChannel().sendMessage(event.getMessageEditor().getMessage(MessageEditor.MessageType.ERROR,
|
||||
"commands.moderation.rules.error.message.title",
|
||||
"commands.moderation.rules.error.message.description")
|
||||
.build()).queue();
|
||||
}
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -155,6 +155,8 @@ commands.moderation.rules.emote.error.equal.title = Emotes are equal
|
|||
commands.moderation.rules.emote.error.equal.description = The 1st and 2nd emote equals each other.
|
||||
commands.moderation.rules.emoji.decline.description = The first emote has been successfully set. Please send me now the decline emote.
|
||||
commands.moderation.rules.emoji.error.description = The given emote can't be used.
|
||||
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.help.description = Setup the rules on your Discord server
|
||||
commands.moderation.starboard.success.title = Successfully set the Channel\!
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue