Update DiscordService.cs

This commit is contained in:
Madpeter 2023-12-01 08:42:01 +00:00
parent 5adb4b08dc
commit 382d469153

View file

@ -601,9 +601,9 @@ namespace SecondBotEvents.Services
continue;
}
WantedCategoryChannels.Remove(category.Name);
if (ChannelMap.ContainsKey(category.Name) == false)
if (CategoryMap.ContainsKey(category.Name) == false)
{
ChannelMap[category.Name] = category.Id;
CategoryMap[category.Name] = category.Id;
return;
}
CategoryMap.Add(category.Name, category.Id);