Skip to main content

Class GuildUserProperties

Properties that are used to modify an Discord.IGuildUser with the following parameters.

Assembly: Discord.Net.Core.dll​
View Source​
Declaration
public class GuildUserProperties

Properties​

Mute​

Gets or sets whether the user should be muted in a voice channel.

View Source​
Declaration
public Optional<bool> Mute { get; set; }

Deaf​

Gets or sets whether the user should be deafened in a voice channel.

View Source​
Declaration
public Optional<bool> Deaf { get; set; }

Nickname​

Gets or sets the user's nickname.

View Source​
Declaration
public Optional<string> Nickname { get; set; }

Roles​

Gets or sets the roles the user should have.

View Source​
Declaration
public Optional<IEnumerable<IRole>> Roles { get; set; }

RoleIds​

Gets or sets the roles the user should have.

View Source​
Declaration
public Optional<IEnumerable<ulong>> RoleIds { get; set; }

Channel​

Moves a user to a voice channel. If null, this user will be disconnected from their current voice channel.

View Source​
Declaration
public Optional<IVoiceChannel> Channel { get; set; }

ChannelId​

Moves a user to a voice channel. Set Discord.GuildUserProperties.Channel to null to disconnect this user from their current voice channel.

View Source​
Declaration
public Optional<ulong> ChannelId { get; set; }