Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bugfix] Mark ForumChannel as a TopicChannelMixin #2317

Merged
merged 2 commits into from
Oct 30, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,13 @@ public enum ChannelField
DEFAULT_REACTION_EMOJI("default_reaction_emoji", AuditLogKey.CHANNEL_DEFAULT_REACTION_EMOJI),

//Text Specific

/**
* The topic of the channel.
*
* <p>Limited to {@link NewsChannel NewsChannels} and {@link TextChannel TextChannels}.
* <p>Limited to {@link NewsChannel NewsChannels}, {@link TextChannel TextChannels} and {@link ForumChannel ForumChannels}.
Sanduhr32 marked this conversation as resolved.
Show resolved Hide resolved
*
* @see StandardGuildMessageChannel#getTopic()
* @see ForumChannel#getTopic()
*/
TOPIC("topic", AuditLogKey.CHANNEL_TOPIC),

Expand Down Expand Up @@ -202,7 +202,7 @@ public enum ChannelField
/**
* The time this channel's archival information was last updated.
*
* <p>This timestamp will be updated when any of the following happen:
* <p>This timestamp will be updated when any of the following happens:
* <ul>
* <li>The channel is archived</li>
* <li>The channel is unarchived</li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@
import net.dv8tion.jda.internal.entities.channel.middleman.AbstractGuildChannelImpl;
import net.dv8tion.jda.internal.entities.channel.mixin.attribute.IAgeRestrictedChannelMixin;
import net.dv8tion.jda.internal.entities.channel.mixin.attribute.ISlowmodeChannelMixin;
import net.dv8tion.jda.internal.entities.channel.mixin.attribute.IThreadContainerMixin;
import net.dv8tion.jda.internal.entities.channel.mixin.attribute.IWebhookContainerMixin;
import net.dv8tion.jda.internal.entities.channel.mixin.attribute.IThreadContainerMixin;
import net.dv8tion.jda.internal.entities.channel.mixin.attribute.ITopicChannelMixin;
import net.dv8tion.jda.internal.entities.channel.mixin.middleman.StandardGuildChannelMixin;
import net.dv8tion.jda.internal.entities.emoji.CustomEmojiImpl;
import net.dv8tion.jda.internal.managers.channel.concrete.ForumChannelManagerImpl;
Expand All @@ -60,10 +61,11 @@ public class ForumChannelImpl extends AbstractGuildChannelImpl<ForumChannelImpl>
implements ForumChannel,
GuildChannelUnion,
StandardGuildChannelMixin<ForumChannelImpl>,
IAgeRestrictedChannelMixin<ForumChannelImpl>,
ISlowmodeChannelMixin<ForumChannelImpl>,
IWebhookContainerMixin<ForumChannelImpl>,
IThreadContainerMixin<ForumChannelImpl>,
IAgeRestrictedChannelMixin<ForumChannelImpl>,
ISlowmodeChannelMixin<ForumChannelImpl>
ITopicChannelMixin<ForumChannelImpl>
{
private final TLongObjectMap<PermissionOverride> overrides = MiscUtil.newLongMap();
private final SortedSnowflakeCacheViewImpl<ForumTag> tagCache = new SortedSnowflakeCacheViewImpl<>(ForumTag.class, ForumTag::getName, Comparator.naturalOrder());
Expand Down