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

Use modern Tuple syntax

Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
This commit is contained in:
Octol1ttle 2023-02-14 22:32:29 +05:00
parent 30a4a94f1b
commit f6f5543972
Signed by: Octol1ttle
GPG key ID: B77C34313AEE1FFF
3 changed files with 23 additions and 23 deletions

View file

@ -118,7 +118,7 @@ public sealed class CommandProcessor {
return null;
}
public Tuple<ulong, SocketUser?>? GetUser(string[] args, string[] cleanArgs, int index) {
public (ulong Id, SocketUser? User)? GetUser(string[] args, string[] cleanArgs, int index) {
if (index >= args.Length) {
Utils.SafeAppendToBuilder(
_stackedReplyMessage, $"{ReplyEmojis.MissingArgument} {Messages.MissingUser}",
@ -144,7 +144,7 @@ public sealed class CommandProcessor {
return null;
}
return Tuple.Create(mention, Boyfriend.Client.GetUser(mention))!;
return (mention, Boyfriend.Client.GetUser(mention));
}
public bool HasPermission(GuildPermission permission) {