1
0
Fork 1
mirror of https://github.com/TeamOctolings/Octobot.git synced 2025-04-29 02:29:55 +03:00

Add /mute command (timeouts only) (#44)

Co-authored-by: Octol1ttle <l1ttleofficial@outlook.com>
This commit is contained in:
Macintxsh 2023-06-23 21:53:52 +03:00 committed by Octol1ttle
parent 7a4e20852e
commit 0e3e562b22
Signed by: Octol1ttle
GPG key ID: B77C34313AEE1FFF
13 changed files with 1477 additions and 745 deletions

View file

@ -129,7 +129,7 @@ public static class Extensions {
}
public static string GetTag(this IUser user) {
return $"{user.Username}#{user.Discriminator:0000}";
return user.Discriminator is 0000 ? $"@{user.Username}" : $"{user.Username}#{user.Discriminator:0000}";
}
public static Snowflake ToDiscordSnowflake(this ulong id) {