DisCatSharp/Entities/Guild/DiscordGuild.cs
/// <summary>
/// Modifies this guild's membership screening form.
/// </summary>
/// <param name="action">Action to perform</param>
/// <returns>The modified screening form.</returns>
/// <exception cref="UnauthorizedException">Thrown when the client doesn't have the <see cref="Permissions.ManageGuild"/> permission, or community is not enabled on this guild.</exception>
/// <exception cref="ServerErrorException">Thrown when Discord is unable to process the request.</exception>
Modifies this guild's membership screening form.
Modifies this guild ' s membership screening form .
public async Task<DiscordGuildMembershipScreening> ModifyMembershipScreeningFormAsync(Action<MembershipScreeningEditModel> action)
        {
            var mdl = new MembershipScreeningEditModel();
            action(mdl);
            return await this.Discord.ApiClient.ModifyGuildMembershipScreeningFormAsync(this.Id, mdl.Enabled, mdl.Fields, mdl.Description);
        }
public async Task < DiscordGuildMembershipScreening > ModifyMembershipScreeningFormAsync ( Action < MembershipScreeningEditModel > action ) { var mdl = new MembershipScreeningEditModel ( ) ; action ( mdl ) ; return await this . Discord . ApiClient . ModifyGuildMembershipScreeningFormAsync ( this . Id , mdl . Enabled , mdl . Fields , mdl . Description ) ; }
Modifies this guild's membership screening form.
Modifies this guild ' s membership screening form .
The modified screening form.
The modified screening form .
Thrown when the client doesn't have the  permission, or community is not enabled on this guild.
Thrown when the client doesn ' t have the permission or community is not enabled on this guild .
Thrown when Discord is unable to process the request.
Thrown when Discord is unable to process the request .
action
Action<MembershipScreeningEditModel>
Action to perform
Action to perform