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:
parent
30a4a94f1b
commit
f6f5543972
3 changed files with 23 additions and 23 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue