Skip to content

Commit ec8309f

Browse files
committed
s
1 parent 3e18e6c commit ec8309f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

backend/src/plugins/Automod/actions/startThread.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export const StartThreadAction = automodAction({
2727
const threads = contexts.filter((c) => {
2828
if (!c.message || !c.user) return false;
2929
const channel = pluginData.guild.channels.cache.get(c.message.channel_id);
30+
console.log(JSON.stringify(channel))
3031
if (channel?.type !== ChannelType.GuildText || !channel.isTextBased()) return false; // for some reason the typing here for channel.type defaults to ThreadChannelTypes (?)
3132
// check against max threads per channel
3233
if (actionConfig.limit_per_channel && actionConfig.limit_per_channel > 0) {

0 commit comments

Comments
 (0)