mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
feat(bot): support threads for logs (#541)
This commit is contained in:
parent
93bef6ea15
commit
1a4b21ccac
2 changed files with 2 additions and 2 deletions
|
|
@ -46,7 +46,7 @@ public class ServerConfig
|
|||
var channelString = ctx.PeekArgument();
|
||||
channel = await ctx.MatchChannel();
|
||||
if (channel == null || channel.GuildId != ctx.Guild.Id) throw Errors.ChannelNotFound(channelString);
|
||||
if (channel.Type != Channel.ChannelType.GuildText)
|
||||
if (channel.Type != Channel.ChannelType.GuildText && channel.Type != Channel.ChannelType.GuildPublicThread && channel.Type != Channel.ChannelType.GuildPrivateThread)
|
||||
throw new PKError("PluralKit cannot log messages to this type of channel.");
|
||||
|
||||
var perms = await _cache.PermissionsIn(channel.Id);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue