public class DiscordEndPoint extends EndPoint
Modifier and Type | Field | Description |
---|---|---|
static int |
MAX_MESSAGE_LENGTH |
connected, connectionType
Constructor | Description |
---|---|
DiscordEndPoint(EndPointInfo info) |
Modifier and Type | Method | Description |
---|---|---|
net.dv8tion.jda.api.entities.TextChannel |
getChannel() |
|
java.lang.String |
getChannelId() |
|
net.dv8tion.jda.api.entities.Guild |
getGuild() |
|
java.lang.String |
getGuildId() |
|
int |
getMaxMessageLength() |
|
void |
sendMessage(java.lang.String message) |
|
void |
sendMessage(EndPointMessage 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.api.entities.Guild getGuild()
public java.lang.String getChannelId()
public net.dv8tion.jda.api.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