Browse Source

Add remark saying that premium_type info may be inaccessible to bots

it seems that this information can not be accessed by any user,
and may require the identity oauth scope
pull/1237/head
Chris Johnston 6 years ago
parent
commit
e2f87526a4
1 changed files with 8 additions and 1 deletions
  1. +8
    -1
      src/Discord.Net.Core/Entities/Users/IUser.cs

+ 8
- 1
src/Discord.Net.Core/Entities/Users/IUser.cs View File

@@ -124,8 +124,15 @@ namespace Discord
/// </returns>
int Flags { get; }
/// <summary>
/// The type of Nitro subscription
/// The type of Nitro subscription that is active on this user's account.
/// </summary>
/// <remarks>
/// This information may only be available with the identify OAuth scope,
/// meaning that users and bots will not have access to this information.
/// </remarks>
/// <returns>
/// The type of Nitro subscription the user subscribes to, or null if this value could not be determined.
/// </returns>
PremiumType? PremiumType { get; }
}
}

Loading…
Cancel
Save