Package com.aliucord.wrappers
Class ChannelWrapper
-
- All Implemented Interfaces:
public final class ChannelWrapper
Wraps the obfuscated Channel class to provide nice method names and require only one central update if method names change after an update
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
ChannelWrapper.Companion
-
Field Summary
Fields Modifier and Type Field Description private final Long
applicationId
private final List<Long>
appliedTags
private final List<ForumTag>
availableTags
private final Integer
bitrate
private final Integer
defaultAutoArchiveDuration
private final Long
flags
private final GuildHashes
guildHashes
private final Long
guildId
private final String
icon
private final Long
id
private final Long
lastMessageId
private final ThreadMember
member
private final String
memberListId
private final Integer
messageCount
private final String
name
private final List<ChannelRecipientNick>
nicks
private final Boolean
nsfw
private final Long
originChannelId
private final Long
ownerId
private final Long
parentId
private final List<PermissionOverwrite>
permissionOverwrites
private final Integer
position
private final Integer
rateLimitPerUser
private final List<Long>
recipientIds
private final List<User>
recipients
private final String
rtcRegion
private final ThreadMetadata
threadMetadata
private final String
topic
private final Integer
type
private final Integer
userLimit
public final static ChannelWrapper.Companion
Companion
-
Constructor Summary
Constructors Constructor Description ChannelWrapper(Channel channel)
-
Method Summary
Modifier and Type Method Description final Long
getApplicationId()
final List<Long>
getAppliedTags()
final List<ForumTag>
getAvailableTags()
final Integer
getBitrate()
final Integer
getDefaultAutoArchiveDuration()
final Long
getFlags()
final GuildHashes
getGuildHashes()
final Long
getGuildId()
final String
getIcon()
final Long
getId()
final Long
getLastMessageId()
final ThreadMember
getMember()
final String
getMemberListId()
final Integer
getMessageCount()
final String
getName()
final List<ChannelRecipientNick>
getNicks()
final Boolean
isNsfw()
final Long
getOriginChannelId()
final Long
getOwnerId()
final Long
getParentId()
final List<PermissionOverwrite>
getPermissionOverwrites()
final Integer
getPosition()
final Integer
getRateLimitPerUser()
final List<Long>
getRecipientIds()
final List<User>
getRecipients()
final String
getRtcRegion()
final ThreadMetadata
getThreadMetadata()
final String
getTopic()
final Integer
getType()
final Integer
getUserLimit()
final Channel
raw()
Returns the raw (obfuscated) Channel Object associated with this wrapper final Boolean
isDM()
final Boolean
isGuild()
final static Boolean
isDM(Channel $self)
final static Boolean
isGuild(Channel $self)
-
-
Method Detail
-
getApplicationId
final Long getApplicationId()
-
getAppliedTags
final List<Long> getAppliedTags()
-
getAvailableTags
final List<ForumTag> getAvailableTags()
-
getBitrate
final Integer getBitrate()
-
getDefaultAutoArchiveDuration
final Integer getDefaultAutoArchiveDuration()
-
getGuildHashes
final GuildHashes getGuildHashes()
-
getGuildId
final Long getGuildId()
-
getLastMessageId
final Long getLastMessageId()
-
getMember
final ThreadMember getMember()
-
getMemberListId
final String getMemberListId()
-
getMessageCount
final Integer getMessageCount()
-
getOriginChannelId
final Long getOriginChannelId()
-
getOwnerId
final Long getOwnerId()
-
getParentId
final Long getParentId()
-
getPermissionOverwrites
final List<PermissionOverwrite> getPermissionOverwrites()
-
getPosition
final Integer getPosition()
-
getRateLimitPerUser
final Integer getRateLimitPerUser()
-
getRecipientIds
final List<Long> getRecipientIds()
-
getRecipients
final List<User> getRecipients()
-
getRtcRegion
final String getRtcRegion()
-
getThreadMetadata
final ThreadMetadata getThreadMetadata()
-
getUserLimit
final Integer getUserLimit()
-
raw
final Channel raw()
Returns the raw (obfuscated) Channel Object associated with this wrapper
-
-
-
-