Class DiscordTeamMember
Represents a member of DiscordTeam.
Inheritance
System.Object
DiscordTeamMember
Namespace: DisCatSharp.Entities
Assembly: DisCatSharp.dll
Syntax
public sealed class DiscordTeamMember : IEquatable<DiscordTeamMember>
Properties
| Improve this Doc View SourceMembershipStatus
Gets the member's membership status.
Declaration
public DiscordTeamMembershipStatus MembershipStatus { get; }
Property Value
Type | Description |
---|---|
DiscordTeamMembershipStatus |
Permissions
Gets the member's permissions within the team.
Declaration
public IReadOnlyCollection<string> Permissions { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<System.String> |
TeamId
Gets the id of the team this member belongs to.
Declaration
public ulong? TeamId { get; }
Property Value
Type | Description |
---|---|
System.Nullable<System.UInt64> |
TeamName
Gets the name of the team this member belongs to.
Declaration
public string TeamName { get; }
Property Value
Type | Description |
---|---|
System.String |
User
Gets the user who is the team member.
Declaration
public DiscordUser User { get; }
Property Value
Type | Description |
---|---|
DiscordUser |
Methods
| Improve this Doc View SourceEquals(DiscordTeamMember)
Compares this team member to another team member and returns whether they are equal.
Declaration
public bool Equals(DiscordTeamMember other)
Parameters
Type | Name | Description |
---|---|---|
DiscordTeamMember | other | Team member to compare to. |
Returns
Type | Description |
---|---|
System.Boolean | Whether this team member is equal to the given one. |
Equals(Object)
Compares this team member to another object and returns whether they are equal.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | Object to compare to. |
Returns
Type | Description |
---|---|
System.Boolean | Whether this team is equal to given object. |
Overrides
System.Object.Equals(System.Object)
|
Improve this Doc
View Source
GetHashCode()
Gets a hash code of this team member.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | Hash code of this team member. |
Overrides
System.Object.GetHashCode()
|
Improve this Doc
View Source
ToString()
Converts this team member to their string representation.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | String representation of this team member. |
Overrides
System.Object.ToString()
Operators
| Improve this Doc View SourceEquality(DiscordTeamMember, DiscordTeamMember)
Declaration
public static bool operator ==(DiscordTeamMember left, DiscordTeamMember right)
Parameters
Type | Name | Description |
---|---|---|
DiscordTeamMember | left | |
DiscordTeamMember | right |
Returns
Type | Description |
---|---|
System.Boolean |
Inequality(DiscordTeamMember, DiscordTeamMember)
Declaration
public static bool operator !=(DiscordTeamMember left, DiscordTeamMember right)
Parameters
Type | Name | Description |
---|---|---|
DiscordTeamMember | left | |
DiscordTeamMember | right |
Returns
Type | Description |
---|---|
System.Boolean |