Interface GroupChannel
- All Superinterfaces:
Channel, Formattable, IDetachableEntity, IMentionable, ISnowflake, MessageChannel
Represents a Group DM channel.
This is only used for user-installed apps.
-
Field Summary
FieldsFields inherited from interface Channel
MAX_NAME_LENGTH -
Method Summary
Modifier and TypeMethodDescriptiondefault ImageProxygetIcon()Returns anImageProxyfor this group channel's icon.default ImageProxygetIcon(ImageFormat format) Returns anImageProxyfor this group channel's icon.The Discord hash-id of the group channel icon image.default StringThe URL of the group channel icon image.default StringgetIconUrl(ImageFormat format) The URL of the group channel icon image.default StringReturns the ID of the user which owns thisGroupChannel.longReturns the ID of the user which owns thisGroupChannel.default RestAction<User> Retrieves theUserwhich owns thisGroupChannel.Methods inherited from interface Channel
delete, formatTo, getAsMention, getFlags, getJDA, getName, getTypeMethods inherited from interface IDetachableEntity
isDetachedMethods inherited from interface ISnowflake
getId, getIdLong, getTimeCreatedMethods inherited from interface MessageChannel
addReactionById, addReactionById, canTalk, deleteMessageById, deleteMessageById, editMessageAttachmentsById, editMessageAttachmentsById, editMessageAttachmentsById, editMessageAttachmentsById, editMessageById, editMessageById, editMessageById, editMessageById, editMessageComponentsById, editMessageComponentsById, editMessageComponentsById, editMessageComponentsById, editMessageComponentsById, editMessageComponentsById, editMessageEmbedsById, editMessageEmbedsById, editMessageEmbedsById, editMessageEmbedsById, editMessageFormatById, editMessageFormatById, endPollById, endPollById, getHistory, getHistoryAfter, getHistoryAfter, getHistoryAfter, getHistoryAround, getHistoryAround, getHistoryAround, getHistoryBefore, getHistoryBefore, getHistoryBefore, getHistoryFromBeginning, getIterableHistory, getLatestMessageId, getLatestMessageIdLong, pinMessageById, pinMessageById, purgeMessages, purgeMessages, purgeMessagesById, purgeMessagesById, purgeMessagesById, removeReactionById, removeReactionById, retrieveMessageById, retrieveMessageById, retrievePinnedMessages, retrievePollVotersById, retrievePollVotersById, retrieveReactionUsersById, retrieveReactionUsersById, retrieveReactionUsersById, retrieveReactionUsersById, sendFiles, sendFiles, sendMessage, sendMessage, sendMessageComponents, sendMessageComponents, sendMessageComponents, sendMessageEmbeds, sendMessageEmbeds, sendMessageFormat, sendMessagePoll, sendTyping, unpinMessageById, unpinMessageById
-
Field Details
-
ICON_URL
-
-
Method Details
-
getIconId
The Discord hash-id of the group channel icon image. If no icon has been set, this returnsnull.- Returns:
- Possibly-null String containing the group channel's icon hash-id.
-
getIconUrl
The URL of the group channel icon image. If no icon has been set, this returnsnull.- Returns:
- Possibly-null String containing the group channel's icon URL.
-
getIconUrl
The URL of the group channel icon image. If no icon has been set, this returnsnull.- Parameters:
format- The format in which the image should be- Returns:
- Possibly-null String containing the group channel's icon URL.
- Throws:
IllegalArgumentException- If the format isnull- See Also:
-
getIcon
Returns anImageProxyfor this group channel's icon.- Returns:
- Possibly-null
ImageProxyof this group channel's icon - See Also:
-
getIcon
Returns anImageProxyfor this group channel's icon.- Parameters:
format- The format in which the image should be- Returns:
- Possibly-null
ImageProxyof this group channel's icon - Throws:
IllegalArgumentException- If the format isnull- See Also:
-
getOwnerIdLong
long getOwnerIdLong()Returns the ID of the user which owns thisGroupChannel.- Returns:
- The ID of the user which owns this
GroupChannel
-
getOwnerId
Returns the ID of the user which owns thisGroupChannel.- Returns:
- The ID of the user which owns this
GroupChannel
-
retrieveOwner
Retrieves theUserwhich owns thisGroupChannel.- Returns:
- A
RestActionto retrieve theUserwhich owns thisGroupChannel.
-
DiscordAssets.channelIcon(ImageFormat, String, String)