Skip to content

Commit

Permalink
[Feature] Support options in Rest's AddRoleAsync (#2908)
Browse files Browse the repository at this point in the history
Adding support for passing RequestOptions to DiscordRestClient's role
methods. Seems like it was just forgotten when the methods were added.
  • Loading branch information
adamgauthier committed Apr 15, 2024
1 parent 031ed60 commit b70e21b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Discord.Net.Rest/DiscordRestClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -249,10 +249,10 @@ public Task<IReadOnlyCollection<GuildApplicationCommandPermission>> BatchEditGui
public Task DeleteAllGlobalCommandsAsync(RequestOptions options = null)
=> InteractionHelper.DeleteAllGlobalCommandsAsync(this, options);

public Task AddRoleAsync(ulong guildId, ulong userId, ulong roleId)
=> ClientHelper.AddRoleAsync(this, guildId, userId, roleId);
public Task RemoveRoleAsync(ulong guildId, ulong userId, ulong roleId)
=> ClientHelper.RemoveRoleAsync(this, guildId, userId, roleId);
public Task AddRoleAsync(ulong guildId, ulong userId, ulong roleId, RequestOptions options = null)
=> ClientHelper.AddRoleAsync(this, guildId, userId, roleId, options);
public Task RemoveRoleAsync(ulong guildId, ulong userId, ulong roleId, RequestOptions options = null)
=> ClientHelper.RemoveRoleAsync(this, guildId, userId, roleId, options);

public Task AddReactionAsync(ulong channelId, ulong messageId, IEmote emote, RequestOptions options = null)
=> MessageHelper.AddReactionAsync(channelId, messageId, emote, this, options);
Expand Down

0 comments on commit b70e21b

Please sign in to comment.