Skip to content

Commit

Permalink
Merge pull request #109 from winglessraven/discord-to-chat-fix
Browse files Browse the repository at this point in the history
Make sure discord to server chat also checks for channel ID
  • Loading branch information
winglessraven authored Sep 17, 2024
2 parents 0965c65 + 304e6c7 commit 5e6377d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DiscordBotPlugin/PluginMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1971,7 +1971,7 @@ private async Task MessageHandler(SocketMessage message)
return;

// Check if the message is in the specified chat-to-Discord channel
if (message.Channel.Name.Equals(_settings.MainSettings.ChatToDiscordChannel))
if (message.Channel.Name.Equals(_settings.MainSettings.ChatToDiscordChannel) || message.Channel.Id.ToString().Equals(_settings.MainSettings.ChatToDiscordChannel))
{
// Send the chat command to the server
await SendChatCommand(message.Author.Username, message.CleanContent);
Expand Down

0 comments on commit 5e6377d

Please sign in to comment.