Table of Contents

Method ModifyWelcomeScreenAsync

Namespace
DSharpPlus.Entities
Assembly
DSharpPlus.dll

ModifyWelcomeScreenAsync(Action<WelcomeScreenEditModel>, string?)

Modifies this guild's welcome screen.

public Task<DiscordGuildWelcomeScreen> ModifyWelcomeScreenAsync(Action<WelcomeScreenEditModel> action, string? reason = null)

Parameters

action Action<WelcomeScreenEditModel>

Action to perform.

reason string

Reason for audit log.

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.