Table of Contents

Method ModifyWelcomeScreenAsync

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

ModifyWelcomeScreenAsync(Action<WelcomeScreenEditModel>, CancellationToken)

Modifies this guild's welcome screen.

public Task<DiscordGuildWelcomeScreen> ModifyWelcomeScreenAsync(Action<WelcomeScreenEditModel> action, CancellationToken cancellationToken = default)

Parameters

action Action<WelcomeScreenEditModel>

Action to perform.

cancellationToken CancellationToken

A token to cancel the request.

Returns

Task<DiscordGuildWelcomeScreen>

The modified welcome screen.

Exceptions

UnauthorizedException

Thrown when the client doesn't have the ManageGuild permission, or community is not enabled on this guild.

ServerErrorException

Thrown when Discord is unable to process the request.