mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-10 12:25:02 +00:00
fix(logs): fix inconsistent thread/channel/category exclusions; add excluded_threads log channel option
This commit is contained in:
parent
218c31231e
commit
d472fd4fa6
32 changed files with 132 additions and 51 deletions
6
backend/src/utils/isDmChannel.ts
Normal file
6
backend/src/utils/isDmChannel.ts
Normal file
|
@ -0,0 +1,6 @@
|
|||
import { Channel, DMChannel } from "discord.js";
|
||||
import { ChannelTypeStrings } from "src/types";
|
||||
|
||||
export function isDmChannel(channel: Channel): channel is DMChannel {
|
||||
return channel.type === ChannelTypeStrings.DM || channel.type === ChannelTypeStrings.GROUP;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue