Fix build errors

This commit is contained in:
Bea 2022-12-21 02:52:17 +01:00
parent 0e256e4cb5
commit cfa7aef333

View File

@ -42,12 +42,12 @@ public class DiceRollCommand extends SlashCommandImpl
MessageResponse response = DiceRoll.buildResponse(event.getUser(), args); MessageResponse response = DiceRoll.buildResponse(event.getUser(), args);
if(response.getContent() != null) if(response.content() != null)
{ {
event.getHook().editOriginal(response.getContent()).queue(); event.getHook().editOriginal(response.content()).queue();
} else if(response.getEmbed() != null) } else if(response.embed() != null)
{ {
event.getHook().editOriginalEmbeds(response.getEmbed()).queue(); event.getHook().editOriginalEmbeds(response.embed()).queue();
} }
} }
} }