Class AddGuildUserProperties
- Namespace
- Discord
- Assembly
- Discord.Net.Core.dll
Properties that are used to add a new IGuildUser to the guild with the following parameters.
public class AddGuildUserProperties
- Inheritance
-
AddGuildUserProperties
- Inherited Members
Properties
Deaf
Gets or sets whether the user should be deafened in a voice channel.
public Optional<bool> Deaf { get; set; }
Property Value
Remarks
If this value is set to true, this user will not be able to hear anyone speak in the guild.
Mute
Gets or sets whether the user should be muted in a voice channel.
public Optional<bool> Mute { get; set; }
Property Value
Remarks
If this value is set to true, no user will be able to hear this user speak in the guild.
Nickname
Gets or sets the user's nickname.
public Optional<string> Nickname { get; set; }
Property Value
Remarks
RoleIds
Gets or sets the roles the user should have.
public Optional<IEnumerable<ulong>> RoleIds { get; set; }
Property Value
Remarks
To add a role to a user: AddRolesAsync(IEnumerable<IRole>, RequestOptions)
To remove a role from a user: RemoveRolesAsync(IEnumerable<IRole>, RequestOptions)
Roles
Gets or sets the roles the user should have.
public Optional<IEnumerable<IRole>> Roles { get; set; }
Property Value
Remarks
To add a role to a user: AddRolesAsync(IEnumerable<IRole>, RequestOptions)
To remove a role from a user: RemoveRolesAsync(IEnumerable<IRole>, RequestOptions)