(wip) migrate commands to components
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -4,18 +4,15 @@ import net.dv8tion.jda.api.EmbedBuilder;
|
||||
import net.dv8tion.jda.api.entities.MessageEmbed;
|
||||
import net.dv8tion.jda.api.entities.emoji.Emoji;
|
||||
import net.dv8tion.jda.api.interactions.components.buttons.Button;
|
||||
import org.springframework.stereotype.Component;
|
||||
import wtf.beatrice.hidekobot.Cache;
|
||||
import wtf.beatrice.hidekobot.HidekoBot;
|
||||
|
||||
@Component
|
||||
public class Invite
|
||||
{
|
||||
|
||||
private Invite()
|
||||
{
|
||||
throw new IllegalStateException("Utility class");
|
||||
}
|
||||
|
||||
public static MessageEmbed generateEmbed()
|
||||
public MessageEmbed generateEmbed()
|
||||
{
|
||||
EmbedBuilder embedBuilder = new EmbedBuilder();
|
||||
|
||||
@@ -33,7 +30,7 @@ public class Invite
|
||||
return embedBuilder.build();
|
||||
}
|
||||
|
||||
public static Button getInviteButton()
|
||||
public Button getInviteButton()
|
||||
{
|
||||
String inviteUrl = Cache.getInviteUrl();
|
||||
return Button.link(inviteUrl, "Invite " + Cache.getBotName())
|
||||
|
Reference in New Issue
Block a user