Skip to content

Commit

Permalink
feat: support media channels
Browse files Browse the repository at this point in the history
  • Loading branch information
ducktrshessami committed Nov 6, 2023
1 parent 9188e52 commit 708ed13
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/discord/ignore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ import {
ChannelType,
ForumChannel,
GuildBasedChannel,
GuildChannel,
GuildTextBasedChannel,
Message,
ThreadChannel
MediaChannel,
Message
} from "discord.js";
import {
Guild,
Expand All @@ -25,7 +24,8 @@ export const IgnorableChannelTypes: Array<IgnorableChannel["type"]> = [
ChannelType.PublicThread,
ChannelType.PrivateThread,
ChannelType.GuildStageVoice,
ChannelType.GuildForum
ChannelType.GuildForum,
ChannelType.GuildMedia
];

export function isIgnorable(channel: GuildBasedChannel): channel is IgnorableChannel {
Expand Down Expand Up @@ -118,4 +118,4 @@ export async function ignoreMessage(message: Message<true>): Promise<boolean> {
return channel || !!user;
}

export type IgnorableChannel = GuildTextBasedChannel | CategoryChannel | ForumChannel;
export type IgnorableChannel = GuildTextBasedChannel | CategoryChannel | ForumChannel | MediaChannel;

0 comments on commit 708ed13

Please sign in to comment.