Skip to content

Commit

Permalink
Update DiscordGuild.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Lulalaby committed Sep 13, 2023
1 parent 638a9a4 commit e651193
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions DisCatSharp/Entities/Guild/DiscordGuild.cs
Original file line number Diff line number Diff line change
Expand Up @@ -899,6 +899,11 @@ public Task<DiscordGuild> ModifyCommunitySettingsAsync(bool enabled, DiscordChan
: ch.Id;
}

/// <summary>
/// Modifies the guild's inventory settings.
/// </summary>
/// <param name="enabled">Whether to allow emoji packs to be collected.</param>
/// <param name="reason">The audit log reason, currently not supported.</param>
[DiscordInExperiment, RequiresFeature(Attributes.Features.Community | Attributes.Features.Override)]
public Task<DiscordGuild> ModifyInventorySettingsAsync(bool enabled, string? reason = null)
=> this.Discord.ApiClient.ModifyGuildInventorySettingsAsync(this.Id, enabled, reason);
Expand Down

0 comments on commit e651193

Please sign in to comment.