Browse Source

Add parameter names & better wording for invite OoR

pull/1140/head
Still Hsu 7 years ago
parent
commit
d5c23b69ed
No known key found for this signature in database GPG Key ID: 8601A145FDA95209
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/Discord.Net.Rest/Entities/Channels/ChannelHelper.cs

+ 2
- 2
src/Discord.Net.Rest/Entities/Channels/ChannelHelper.cs View File

@@ -77,8 +77,8 @@ namespace Discord.Rest
int? maxAge, int? maxUses, bool isTemporary, bool isUnique, RequestOptions options) int? maxAge, int? maxUses, bool isTemporary, bool isUnique, RequestOptions options)
{ {
if (maxAge > 86400) 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 var args = new API.Rest.CreateChannelInviteParams
{ {
IsTemporary = isTemporary, IsTemporary = isTemporary,


Loading…
Cancel
Save