public class DiscordEndPoint extends EndPoint
Modifier and Type | Field and Description |
---|---|
static int |
MAX_MESSAGE_LENGTH |
connected, connectionType
Constructor and Description |
---|
DiscordEndPoint(EndPointInfo info) |
Modifier and Type | Method and Description |
---|---|
net.dv8tion.jda.core.entities.TextChannel |
getChannel() |
java.lang.String |
getChannelId() |
net.dv8tion.jda.core.entities.Guild |
getGuild() |
java.lang.String |
getGuildId() |
int |
getMaxMessageLength() |
void |
sendMessage(EndPointMessage message) |
void |
sendMessage(java.lang.String message) |
EndPointInfo |
toEndPointInfo() |
divideMessageForSending, getType, isConnected, setConnected
public static final int MAX_MESSAGE_LENGTH
public DiscordEndPoint(EndPointInfo info)
public java.lang.String getGuildId()
public net.dv8tion.jda.core.entities.Guild getGuild()
public java.lang.String getChannelId()
public net.dv8tion.jda.core.entities.TextChannel getChannel()
public EndPointInfo toEndPointInfo()
toEndPointInfo
in class EndPoint
public int getMaxMessageLength()
getMaxMessageLength
in class EndPoint
public void sendMessage(java.lang.String message)
sendMessage
in class EndPoint
public void sendMessage(EndPointMessage message)
sendMessage
in class EndPoint