Method ModifyGuildRoleAsync
- Namespace
- DSharpPlus
- Assembly
- DSharpPlus.Rest.dll
ModifyGuildRoleAsync(ulong, ulong, string, DiscordPermissions?, DiscordColor?, bool?, bool?, string, Stream, DiscordEmoji)
Modifies a role
public Task<DiscordRole> ModifyGuildRoleAsync(ulong guildId, ulong roleId, string name, DiscordPermissions? permissions, DiscordColor? color, bool? hoist, bool? mentionable, string reason, Stream icon, DiscordEmoji emoji)
Parameters
guildId
ulongGuild ID
roleId
ulongRole ID
name
stringNew role name
permissions
DiscordPermissions?New role permissions
color
DiscordColor?New role color
hoist
bool?Whether this role should be hoisted
mentionable
bool?Whether this role should be mentionable
reason
stringWhy this role was modified
icon
StreamThe icon to add to this role
emoji
DiscordEmojiThe emoji to add to this role. Must be unicode.
Returns
ModifyGuildRoleAsync(ulong, ulong, Action<RoleEditModel>)
Modifies a role
public Task ModifyGuildRoleAsync(ulong roleId, ulong guildId, Action<RoleEditModel> action)
Parameters
roleId
ulongRole ID
guildId
ulongGuild ID
action
Action<RoleEditModel>Modifications