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

Rename users to "nickname" who attempt to hoist theimselves pt.2

This commit is contained in:
nrdk 2023-07-20 04:37:01 +05:00
parent 146e1b7b87
commit 165bab524a
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
2 changed files with 1 additions and 5 deletions

View file

@ -1,4 +1,3 @@
using System.Data;
using Boyfriend.Data; using Boyfriend.Data;
using Boyfriend.Services; using Boyfriend.Services;
using JetBrains.Annotations; using JetBrains.Annotations;

View file

@ -167,10 +167,7 @@ public class GuildUpdateService : BackgroundService {
foreach (var symbol in symbols) { foreach (var symbol in symbols) {
if (tag[0] == symbol) { if (tag[0] == symbol) {
await _guildApi.ModifyGuildMemberAsync(guildId, userId, "nickname", ct: ct);
var rename = await _guildApi.ModifyGuildMemberAsync(guildId, userId, "nickname" ,ct: ct);
} }
} }
} }