Role Mention fix

This commit is contained in:
GregTCLTK 2019-12-06 17:38:23 +01:00
parent 0575c5d879
commit 4982196fb1
No known key found for this signature in database
GPG key ID: A91BADE5C070FF67

View file

@ -64,7 +64,7 @@ public class RulesCommand implements Command {
.setDescription("The channel was successfully set to " + channel.getName() + ". Please send me the rules now.") .setDescription("The channel was successfully set to " + channel.getName() + ". Please send me the rules now.")
.build()).queue(); .build()).queue();
new EventWaiter().newOnMessageEventWaiter(event2 -> { new EventWaiter().newOnMessageEventWaiter(event2 -> {
String message = event2.getMessage().getContentDisplay(); String message = event2.getMessage().getContentRaw();
event2.getChannel().sendMessage(new MessageEditor().setDefaultSettings(MessageEditor.MessageType.INFO) event2.getChannel().sendMessage(new MessageEditor().setDefaultSettings(MessageEditor.MessageType.INFO)
.setTitle("Role to assign") .setTitle("Role to assign")
.setDescription("The rules were successfully set. Please send me the name of the role which the user receives after he accepted the rules.") .setDescription("The rules were successfully set. Please send me the name of the role which the user receives after he accepted the rules.")