mirror of
https://github.com/RPCS3/discord-bot.git
synced 2025-04-02 12:21:38 +00:00
fuck vs, seriously
This commit is contained in:
parent
c3888720d2
commit
c5617c2583
@ -23,7 +23,7 @@ namespace CompatBot.Commands
|
|||||||
if (channel.Type != ChannelType.Text)
|
if (channel.Type != ChannelType.Text)
|
||||||
{
|
{
|
||||||
Config.Log.Warn($"Resolved a {channel.Type} channel again for #{channel.Name}");
|
Config.Log.Warn($"Resolved a {channel.Type} channel again for #{channel.Name}");
|
||||||
var channelResult = await new CustomDiscordChannelConverter().ConvertAsync(channel.Name, ctx).ConfigureAwait(false);
|
var channelResult = await new TextOnlyDiscordChannelConverter().ConvertAsync(channel.Name, ctx).ConfigureAwait(false);
|
||||||
if (channelResult.HasValue && channelResult.Value.Type == ChannelType.Text)
|
if (channelResult.HasValue && channelResult.Value.Type == ChannelType.Text)
|
||||||
channel = channelResult.Value;
|
channel = channelResult.Value;
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user