|
|
@@ -311,13 +311,15 @@ namespace Discord.Rest |
|
|
|
/// <summary> |
|
|
|
/// Gets a collection of slash commands created by the current user in this guild. |
|
|
|
/// </summary> |
|
|
|
/// <param name="withLocalizations">Whether to include full localization dictionaries in the returned objects, instead of the name localized and description localized fields.</param> |
|
|
|
/// <param name="locale">The target locale of the localized name and description fields. Sets <c>X-Discord-Locale</c> header, which takes precedence over <c>Accept-Language</c>.</param> |
|
|
|
/// <param name="options">The options to be used when sending the request.</param> |
|
|
|
/// <returns> |
|
|
|
/// A task that represents the asynchronous get operation. The task result contains a read-only collection of |
|
|
|
/// slash commands created by the current user. |
|
|
|
/// </returns> |
|
|
|
public Task<IReadOnlyCollection<RestGuildCommand>> GetSlashCommandsAsync(bool withLocalizations = false, RequestOptions options = null) |
|
|
|
=> GuildHelper.GetSlashCommandsAsync(this, Discord, withLocalizations, options); |
|
|
|
public Task<IReadOnlyCollection<RestGuildCommand>> GetSlashCommandsAsync(bool withLocalizations = false, string locale = null, RequestOptions options = null) |
|
|
|
=> GuildHelper.GetSlashCommandsAsync(this, Discord, withLocalizations, locale, options); |
|
|
|
|
|
|
|
/// <summary> |
|
|
|
/// Gets a slash command in the current guild. |
|
|
@@ -928,13 +930,15 @@ namespace Discord.Rest |
|
|
|
/// <summary> |
|
|
|
/// Gets this guilds slash commands |
|
|
|
/// </summary> |
|
|
|
/// <param name="withLocalizations">Whether to include full localization dictionaries in the returned objects, instead of the name localized and description localized fields.</param> |
|
|
|
/// <param name="locale">The target locale of the localized name and description fields. Sets <c>X-Discord-Locale</c> header, which takes precedence over <c>Accept-Language</c>.</param> |
|
|
|
/// <param name="options">The options to be used when sending the request.</param> |
|
|
|
/// <returns> |
|
|
|
/// A task that represents the asynchronous get operation. The task result contains a read-only collection |
|
|
|
/// of application commands found within the guild. |
|
|
|
/// </returns> |
|
|
|
public async Task<IReadOnlyCollection<RestGuildCommand>> GetApplicationCommandsAsync (bool withLocalizations = false, RequestOptions options = null) |
|
|
|
=> await ClientHelper.GetGuildApplicationCommandsAsync(Discord, Id, withLocalizations, options).ConfigureAwait(false); |
|
|
|
public async Task<IReadOnlyCollection<RestGuildCommand>> GetApplicationCommandsAsync (bool withLocalizations = false, string locale = null, RequestOptions options = null) |
|
|
|
=> await ClientHelper.GetGuildApplicationCommandsAsync(Discord, Id, withLocalizations, locale, options).ConfigureAwait(false); |
|
|
|
/// <summary> |
|
|
|
/// Gets an application command within this guild with the specified id. |
|
|
|
/// </summary> |
|
|
@@ -1467,8 +1471,8 @@ namespace Discord.Rest |
|
|
|
async Task<IReadOnlyCollection<IWebhook>> IGuild.GetWebhooksAsync(RequestOptions options) |
|
|
|
=> await GetWebhooksAsync(options).ConfigureAwait(false); |
|
|
|
/// <inheritdoc /> |
|
|
|
async Task<IReadOnlyCollection<IApplicationCommand>> IGuild.GetApplicationCommandsAsync (bool withLocalizations, RequestOptions options) |
|
|
|
=> await GetApplicationCommandsAsync(withLocalizations, options).ConfigureAwait(false); |
|
|
|
async Task<IReadOnlyCollection<IApplicationCommand>> IGuild.GetApplicationCommandsAsync (bool withLocalizations, string locale, RequestOptions options) |
|
|
|
=> await GetApplicationCommandsAsync(withLocalizations, locale, options).ConfigureAwait(false); |
|
|
|
/// <inheritdoc /> |
|
|
|
async Task<ICustomSticker> IGuild.CreateStickerAsync(string name, string description, IEnumerable<string> tags, Image image, RequestOptions options) |
|
|
|
=> await CreateStickerAsync(name, description, tags, image, options); |
|
|
|