Method ModifyGuildMemberAsync
- Namespace
- DSharpPlus
- Assembly
- DSharpPlus.Rest.dll
ModifyGuildMemberAsync(ulong, ulong, Optional<string>, Optional<IEnumerable<ulong>>, Optional<bool>, Optional<bool>, Optional<ulong?>, Optional<DateTimeOffset?>, string)
Modifies guild member.
public Task ModifyGuildMemberAsync(ulong guildId, ulong userId, Optional<string> nick, Optional<IEnumerable<ulong>> roleIds, Optional<bool> mute, Optional<bool> deaf, Optional<ulong?> voiceChannelId, Optional<DateTimeOffset?> communicationDisabledUntil, string reason)
Parameters
guildId
ulongGuild ID
userId
ulongUser ID
nick
Optional<string>New nickname
roleIds
Optional<IEnumerable<ulong>>New roles
mute
Optional<bool>Whether this user should be muted
deaf
Optional<bool>Whether this user should be deafened
voiceChannelId
Optional<ulong?>Voice channel to move this user to
communicationDisabledUntil
Optional<DateTimeOffset?>How long this member should be timed out for. Requires MODERATE_MEMBERS permission.
reason
stringReason this user was modified