Table of Contents

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 ulong

Guild ID

userId ulong

User ID

roleId ulong

Role ID

reason string

Reason this role gets added

Returns

Task