added serverinfo command

added freemarker extension in order to split up elements in fields at a point which makes sense (necessary for emotes to render)
added additional check to split fields if they are indeed over the max length
This commit is contained in:
Sheldan
2020-05-27 13:07:51 +02:00
parent 2aa55f6ab6
commit be97e825cc
19 changed files with 213 additions and 1 deletions

View File

@@ -0,0 +1,18 @@
package dev.sheldan.abstracto.utility.models.template.commands.serverinfo;
import dev.sheldan.abstracto.core.models.context.UserInitiatedServerContext;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.SuperBuilder;
import net.dv8tion.jda.api.entities.Emote;
import net.dv8tion.jda.api.entities.Guild;
import java.util.List;
@Getter
@Setter
@SuperBuilder
public class ServerInfoModel extends UserInitiatedServerContext {
private Guild guild;
private List<Emote> emotes;
}