From 7dc3368d3f8abf84f68b5d11da041de0f5030ffd Mon Sep 17 00:00:00 2001 From: Almighty-Satan <43804777+Almighty-Satan@users.noreply.github.com> Date: Thu, 12 Oct 2023 18:10:16 +0200 Subject: [PATCH] Use enum constant instead of bit flag (#2563) --- .../jda/internal/managers/channel/ChannelManagerImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/dv8tion/jda/internal/managers/channel/ChannelManagerImpl.java b/src/main/java/net/dv8tion/jda/internal/managers/channel/ChannelManagerImpl.java index 9db8a80eb9..872218ad30 100644 --- a/src/main/java/net/dv8tion/jda/internal/managers/channel/ChannelManagerImpl.java +++ b/src/main/java/net/dv8tion/jda/internal/managers/channel/ChannelManagerImpl.java @@ -163,7 +163,7 @@ public M reset(long fields) if ((fields & HIDE_MEDIA_DOWNLOAD_OPTIONS) == HIDE_MEDIA_DOWNLOAD_OPTIONS) { - if (channel.getFlags().contains(HIDE_MEDIA_DOWNLOAD_OPTIONS)) + if (channel.getFlags().contains(ChannelFlag.HIDE_MEDIA_DOWNLOAD_OPTIONS)) this.flags.add(ChannelFlag.HIDE_MEDIA_DOWNLOAD_OPTIONS); else this.flags.remove(ChannelFlag.HIDE_MEDIA_DOWNLOAD_OPTIONS);