Class ModifyGuildMemberOptions
An optional set of parameters to change the attributes of a guild member.
Inherited Members
Namespace: Discore.Http
Assembly: Discore.dll
Syntax
public class ModifyGuildMemberOptions
Properties
| Name | Description |
|---|---|
| ChannelId | Gets or sets the ID of the voice channel to move the member to if they are currently connected to voice (or null to leave unchanged). The current bot must have permission to connect to this channel. Requires MoveMembers. |
| IsServerDeaf | Gets or sets whether the member is server deafened (or null to leave unchanged). Requires DeafenMembers. |
| IsServerMute | Gets or sets whether the member is server muted (or null to leave unchanged). Requires MuteMembers. |
| Nickname | Gets or sets the member's nickname for the guild (or null to leave unchanged). Requires ManageNicknames. |
| RoleIds | Gets or sets a list of IDs for each role the member is to be assigned to (or null to leave unchanged). Requires ManageRoles. |
Methods
| Name | Description |
|---|---|
| SetNickname(string) | Sets the member's nickname for the guild. Requires ManageNicknames. |
| SetRoles(IEnumerable<Snowflake>) | Sets the roles the member is to be assigned to. Requires ManageRoles. |
| SetServerDeaf(bool) | Sets whether the member is server deafened. Requires DeafenMembers. |
| SetServerMute(bool) | Sets whether the member is server mute. Requires MuteMembers. |
| SetVoiceChannel(Snowflake) | Sets the ID of the voice channel to move the member to (if they are currently connected to voice). The current bot must have permission to connect to this channel. Requires MoveMembers. |