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; continue;
} }
WantedCategoryChannels.Remove(category.Name); 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; return;
} }
CategoryMap.Add(category.Name, category.Id); CategoryMap.Add(category.Name, category.Id);