From d5c23b69ed58eeab2f027fd30e4ded540774a53a Mon Sep 17 00:00:00 2001 From: Still Hsu <341464@gmail.com> Date: Thu, 6 Sep 2018 04:34:45 +0800 Subject: [PATCH] Add parameter names & better wording for invite OoR --- src/Discord.Net.Rest/Entities/Channels/ChannelHelper.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Discord.Net.Rest/Entities/Channels/ChannelHelper.cs b/src/Discord.Net.Rest/Entities/Channels/ChannelHelper.cs index 3063ac17e..d696d6b94 100644 --- a/src/Discord.Net.Rest/Entities/Channels/ChannelHelper.cs +++ b/src/Discord.Net.Rest/Entities/Channels/ChannelHelper.cs @@ -77,8 +77,8 @@ namespace Discord.Rest int? maxAge, int? maxUses, bool isTemporary, bool isUnique, RequestOptions options) { if (maxAge > 86400) - throw new ArgumentOutOfRangeException(nameof(maxAge), maxAge, - "The maximum age of an invite must be less than or equal to a day (86400)."); + throw new ArgumentOutOfRangeException(paramName: nameof(maxAge), actualValue: maxAge, + message: "The maximum age of an invite must be less than or equal to a day (86400 seconds)."); var args = new API.Rest.CreateChannelInviteParams { IsTemporary = isTemporary,