private readonly Dictionary<ulong, Dictionary<ulong, int>> _warns = new();public async Task WarnGuildMemberAsync(SocketGuildUser member, [Remainder] string? reason = null){ ulong guildId = Context.Guild.Id; ulong memberId = member.Id; if (!_warns.ContainsKey(guildId)) { _warns[guildId] = new(); // new() => Dictionary<ulong, int> | ulong key contains the member id } if (!_warns[guildId].ContainsKey(memberId)) { _warns[guildId][memberId] = 0; } Console.WriteLine(_warns[guildId][memberId]); _warns[guildId][memberId]++; Console.WriteLine(_warns[guildId][memberId]);}
string[] blacklistedWords = new string[]{ "world"}string message = "hello world"