Table of Contents

Method ModifyWelcomeScreenAsync

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

ModifyWelcomeScreenAsync(Action<WelcomeScreenEditModel>)

Modifies this guild's welcome screen.

public Task<DiscordGuildWelcomeScreen> ModifyWelcomeScreenAsync(Action<WelcomeScreenEditModel> action)

Parameters

action Action<WelcomeScreenEditModel>

Action to perform.

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.