Skip to content

Commit

Permalink
Fix NewsChannel#getManager always returning null (#2107)
Browse files Browse the repository at this point in the history
  • Loading branch information
CheesyGamer77 committed Apr 25, 2022
1 parent 5492a76 commit f4f31b6
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -27,6 +27,7 @@
import net.dv8tion.jda.internal.entities.mixin.channel.middleman.BaseGuildMessageChannelMixin;
import net.dv8tion.jda.internal.requests.RestActionImpl;
import net.dv8tion.jda.internal.requests.Route;
import net.dv8tion.jda.internal.managers.channel.concrete.NewsChannelManagerImpl;
import net.dv8tion.jda.internal.utils.Checks;

import javax.annotation.Nonnull;
Expand Down Expand Up @@ -137,7 +138,7 @@ public ChannelAction<NewsChannel> createCopy(@Nonnull Guild guild)
@Override
public NewsChannelManager getManager()
{
return null;
return new NewsChannelManagerImpl(this);
}

@Override
Expand Down

0 comments on commit f4f31b6

Please sign in to comment.