1
0
Fork 1
mirror of https://github.com/TeamOctolings/Octobot.git synced 2025-04-19 16:33:36 +03:00

Fix issues found by ReSharper CLI pt.2

This commit is contained in:
nrdk 2023-07-20 04:49:31 +05:00
parent f4fc771432
commit 2aee8a9c02
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 037977635882C149

View file

@ -162,7 +162,7 @@ public class GuildUpdateService : BackgroundService {
var guildUser = _guildApi.GetGuildMemberAsync(guildId, userId, ct);
var tag = guildUser.Result.Entity.Nickname.ToString();
var symbols = new char[] { "~"[0], "`"[0], "!"[0], "@"[0], "#"[0], "$"[0], "%"[0], "^"[0], "&"[0], "*"[0], "("[0], ")"[0], "_"[0], "-"[0], "+"[0], "="[0]};
var symbols = new[] { "~"[0], "`"[0], "!"[0], "@"[0], "#"[0], "$"[0], "%"[0], "^"[0], "&"[0], "*"[0], "("[0], ")"[0], "_"[0], "-"[0], "+"[0], "="[0]};
foreach (var symbol in symbols) {
if (tag[0] == symbol) {