Package com.mewna.catnip.entity.channel
Interface NewsChannel
- All Superinterfaces:
Channel
,Entity
,GuildChannel
,GuildEntity
,HasGuild
,HasName
,HasParentChannel
,Mentionable
,MessageChannel
,Snowflake
,TextChannel
,Timestamped
- All Known Implementing Classes:
NewsChannelImpl
A news channel in a guild is effectively a reskinned text channel, but with
two important differences:
- The channel type is
Channel.ChannelType.NEWS
. - There is no ratelimit.
- Since:
- 3/10/19.
- Author:
- amy
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.mewna.catnip.entity.channel.Channel
Channel.ChannelType
Nested classes/interfaces inherited from interface com.mewna.catnip.entity.channel.GuildChannel
GuildChannel.ChannelEditFields
Nested classes/interfaces inherited from interface com.mewna.catnip.entity.partials.Timestamped
Timestamped.TimestampStyle
-
Method Summary
Modifier and TypeMethodDescriptiondefault int
The slowmode set on this channel.Methods inherited from interface com.mewna.catnip.entity.channel.Channel
asCategory, asDMChannel, asGroupDMChannel, asGuildChannel, asMessageChannel, asTextChannel, asUserDMChannel, asVoiceChannel, delete, isGuildMessageChannel, isStore, type
Methods inherited from interface com.mewna.catnip.entity.channel.GuildChannel
createInvite, createInvite, createInvite, delete, edit, fetchInvites, isDM, isGroupDM, isGuild, isUserDM, overrides, position
Methods inherited from interface com.mewna.catnip.entity.partials.GuildEntity
guild
Methods inherited from interface com.mewna.catnip.entity.partials.HasGuild
guildId, guildIdAsLong
Methods inherited from interface com.mewna.catnip.entity.partials.HasParentChannel
parentId, parentIdAsLong
Methods inherited from interface com.mewna.catnip.entity.channel.MessageChannel
addReaction, addReaction, bulkRemoveReaction, deleteMessage, deleteMessage, deleteOwnReaction, deleteOwnReaction, deleteUserReaction, deleteUserReaction, editMessage, editMessage, editMessage, fetchMessage, fetchMessages, sendMessage, sendMessage, sendMessage, sendMessage, triggerTypingIndicator
Methods inherited from interface com.mewna.catnip.entity.partials.Snowflake
creationTime, creationTimestamp, id, idAsLong
Methods inherited from interface com.mewna.catnip.entity.channel.TextChannel
asMention, fetchWebhooks, isCategory, isNews, isText, isVoice, nsfw, topic
Methods inherited from interface com.mewna.catnip.entity.partials.Timestamped
asDiscordTimestamp, parseTimestamp
-
Method Details
-
rateLimitPerUser
default int rateLimitPerUser()Description copied from interface:TextChannel
The slowmode set on this channel. A value of 0 means no slowmode. Bots are not affected by slowmode.- Specified by:
rateLimitPerUser
in interfaceTextChannel
- Returns:
- The slowmode set on this channel, in seconds.
-