[Feature] Support options in Rest's AddRoleAsync (#2908)

Adding support for passing RequestOptions to DiscordRestClient's role
methods. Seems like it was just forgotten when the methods were added.
This commit is contained in:
Adam Gauthier
2024-04-15 00:13:40 -07:00
committed by GitHub
parent 031ed60ebc
commit b70e21ba28

View File

@@ -249,10 +249,10 @@ namespace Discord.Rest
public Task DeleteAllGlobalCommandsAsync(RequestOptions options = null) public Task DeleteAllGlobalCommandsAsync(RequestOptions options = null)
=> InteractionHelper.DeleteAllGlobalCommandsAsync(this, options); => InteractionHelper.DeleteAllGlobalCommandsAsync(this, options);
public Task AddRoleAsync(ulong guildId, ulong userId, ulong roleId) public Task AddRoleAsync(ulong guildId, ulong userId, ulong roleId, RequestOptions options = null)
=> ClientHelper.AddRoleAsync(this, guildId, userId, roleId); => ClientHelper.AddRoleAsync(this, guildId, userId, roleId, options);
public Task RemoveRoleAsync(ulong guildId, ulong userId, ulong roleId) public Task RemoveRoleAsync(ulong guildId, ulong userId, ulong roleId, RequestOptions options = null)
=> ClientHelper.RemoveRoleAsync(this, guildId, userId, roleId); => ClientHelper.RemoveRoleAsync(this, guildId, userId, roleId, options);
public Task AddReactionAsync(ulong channelId, ulong messageId, IEmote emote, RequestOptions options = null) public Task AddReactionAsync(ulong channelId, ulong messageId, IEmote emote, RequestOptions options = null)
=> MessageHelper.AddReactionAsync(channelId, messageId, emote, this, options); => MessageHelper.AddReactionAsync(channelId, messageId, emote, this, options);