Class SocketGuildUser
Represents a WebSocket-based guild user.
Inheritance
SocketGuildUser
Assembly: Discord.Net.WebSocket.dll
Syntax
public class SocketGuildUser : SocketUser, IGuildUser, IUser, ISnowflakeEntity, IEntity<ulong>, IMentionable, IPresence, IVoiceState
Properties
|
Improve this Doc
View Source
AudioStream
Declaration
public AudioInStream AudioStream { get; }
Property Value
|
Improve this Doc
View Source
AvatarId
Declaration
public override string AvatarId { get; }
Property Value
Overrides
|
Improve this Doc
View Source
DiscriminatorValue
Declaration
public override ushort DiscriminatorValue { get; }
Property Value
Overrides
|
Improve this Doc
View Source
Guild
Gets the guild the user is in.
Declaration
public SocketGuild Guild { get; }
Property Value
|
Improve this Doc
View Source
GuildPermissions
Declaration
public GuildPermissions GuildPermissions { get; }
Property Value
|
Improve this Doc
View Source
Hierarchy
Returns the position of the user within the role hierarchy.
Declaration
public int Hierarchy { get; }
Property Value
|
Improve this Doc
View Source
IsBot
Declaration
public override bool IsBot { get; }
Property Value
Overrides
|
Improve this Doc
View Source
IsDeafened
Declaration
public bool IsDeafened { get; }
Property Value
|
Improve this Doc
View Source
IsMuted
Declaration
public bool IsMuted { get; }
Property Value
|
Improve this Doc
View Source
IsSelfDeafened
Declaration
public bool IsSelfDeafened { get; }
Property Value
|
Improve this Doc
View Source
IsSelfMuted
Declaration
public bool IsSelfMuted { get; }
Property Value
|
Improve this Doc
View Source
IsSuppressed
Declaration
public bool IsSuppressed { get; }
Property Value
|
Improve this Doc
View Source
IsWebhook
Declaration
public override bool IsWebhook { get; }
Property Value
Overrides
|
Improve this Doc
View Source
JoinedAt
Declaration
public DateTimeOffset? JoinedAt { get; }
Property Value
|
Improve this Doc
View Source
Nickname
Declaration
public string Nickname { get; }
Property Value
|
Improve this Doc
View Source
Roles
Returns a collection of roles that the user possesses.
Declaration
public IReadOnlyCollection<SocketRole> Roles { get; }
Property Value
|
Improve this Doc
View Source
Username
Declaration
public override string Username { get; }
Property Value
Overrides
|
Improve this Doc
View Source
VoiceChannel
Returns the voice channel the user is in, or null
if none.
Declaration
public SocketVoiceChannel VoiceChannel { get; }
Property Value
|
Improve this Doc
View Source
VoiceSessionId
Declaration
public string VoiceSessionId { get; }
Property Value
|
Improve this Doc
View Source
VoiceState
Gets the voice connection status of the user if any.
Declaration
public SocketVoiceState? VoiceState { get; }
Property Value
Methods
|
Improve this Doc
View Source
AddRoleAsync(IRole, RequestOptions)
Declaration
public Task AddRoleAsync(IRole role, RequestOptions options = null)
Parameters
Returns
|
Improve this Doc
View Source
AddRolesAsync(IEnumerable<IRole>, RequestOptions)
Declaration
public Task AddRolesAsync(IEnumerable<IRole> roles, RequestOptions options = null)
Parameters
Returns
|
Improve this Doc
View Source
GetPermissions(IGuildChannel)
Declaration
public ChannelPermissions GetPermissions(IGuildChannel channel)
Parameters
Returns
|
Improve this Doc
View Source
KickAsync(String, RequestOptions)
Declaration
public Task KickAsync(string reason = null, RequestOptions options = null)
Parameters
Returns
|
Improve this Doc
View Source
ModifyAsync(Action<GuildUserProperties>, RequestOptions)
Declaration
public Task ModifyAsync(Action<GuildUserProperties> func, RequestOptions options = null)
Parameters
Returns
|
Improve this Doc
View Source
RemoveRoleAsync(IRole, RequestOptions)
Declaration
public Task RemoveRoleAsync(IRole role, RequestOptions options = null)
Parameters
Returns
|
Improve this Doc
View Source
RemoveRolesAsync(IEnumerable<IRole>, RequestOptions)
Declaration
public Task RemoveRolesAsync(IEnumerable<IRole> roles, RequestOptions options = null)
Parameters
Returns
Explicit Interface Implementations
|
Improve this Doc
View Source
IGuildUser.Guild
Declaration
IGuild IGuildUser.Guild { get; }
Returns
|
Improve this Doc
View Source
IGuildUser.GuildId
Declaration
ulong IGuildUser.GuildId { get; }
Returns
|
Improve this Doc
View Source
IGuildUser.RoleIds
Declaration
IReadOnlyCollection<ulong> IGuildUser.RoleIds { get; }
Returns
|
Improve this Doc
View Source
IVoiceState.VoiceChannel
Declaration
IVoiceChannel IVoiceState.VoiceChannel { get; }
Returns
Implements