Visual Studio C#7 suggestions

This commit is contained in:
Christopher F
2017-04-23 15:23:06 -04:00
parent 6000b15c4d
commit 431b7fbd9f
21 changed files with 80 additions and 165 deletions

View File

@@ -80,8 +80,7 @@ namespace Discord.Rest
if (endIndex == -1) break;
string content = text.Substring(index, endIndex - index + 1);
ulong id;
if (MentionUtils.TryParseUser(content, out id))
if (MentionUtils.TryParseUser(content, out ulong id))
{
IUser mentionedUser = null;
foreach (var mention in userMentions)