Method AddGuildMemberRoleAsync
- Namespace
- DSharpPlus
- Assembly
- DSharpPlus.Rest.dll
AddGuildMemberRoleAsync(ulong, ulong, ulong, string)
Add role to guild member
public Task AddGuildMemberRoleAsync(ulong guildId, ulong userId, ulong roleId, string reason)
Parameters
guildId
ulongGuild ID
userId
ulongUser ID
roleId
ulongRole ID
reason
stringReason this role gets added
Returns
- Task