|
@@ -1,5 +1,8 @@ |
|
|
namespace Discord.Rest |
|
|
namespace Discord.Rest |
|
|
{ |
|
|
{ |
|
|
|
|
|
/// <summary> |
|
|
|
|
|
/// Represents information for a member. |
|
|
|
|
|
/// </summary> |
|
|
public struct MemberInfo |
|
|
public struct MemberInfo |
|
|
{ |
|
|
{ |
|
|
internal MemberInfo(string nick, bool? deaf, bool? mute) |
|
|
internal MemberInfo(string nick, bool? deaf, bool? mute) |
|
@@ -9,8 +12,28 @@ namespace Discord.Rest |
|
|
Mute = mute; |
|
|
Mute = mute; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
|
/// Gets the nickname of the updated member. |
|
|
|
|
|
/// </summary> |
|
|
|
|
|
/// <returns> |
|
|
|
|
|
/// A string representing the nickname of the updated member; <c>null</c> if none is set. |
|
|
|
|
|
/// </returns> |
|
|
public string Nickname { get; } |
|
|
public string Nickname { get; } |
|
|
|
|
|
/// <summary> |
|
|
|
|
|
/// Gets a value that indicates whether the updated member is deafened by the guild. |
|
|
|
|
|
/// </summary> |
|
|
|
|
|
/// <returns> |
|
|
|
|
|
/// <c>true</c> if the updated member is deafened (i.e. not permitted to listen to or speak to others) by the guild; |
|
|
|
|
|
/// otherwise <c>false</c>. |
|
|
|
|
|
/// </returns> |
|
|
public bool? Deaf { get; } |
|
|
public bool? Deaf { get; } |
|
|
|
|
|
/// <summary> |
|
|
|
|
|
/// Gets a value that indicates whether the updated member is muted (i.e. not permitted to speak via voice) by the |
|
|
|
|
|
/// guild. |
|
|
|
|
|
/// </summary> |
|
|
|
|
|
/// <returns> |
|
|
|
|
|
/// <c>true</c> if the updated member is muted by the guild; otherwise <c>false</c>. |
|
|
|
|
|
/// </returns> |
|
|
public bool? Mute { get; } |
|
|
public bool? Mute { get; } |
|
|
} |
|
|
} |
|
|
} |
|
|
} |