Method ModifyServerGuideAsync
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
ModifyServerGuideAsync(Optional<bool>, Optional<WelcomeMessage>, Optional<List<NewMemberAction>>, Optional<List<ResourceChannel>>, string?)
Modifies this guilds server guide configuration.
[RequiresFeature(Features.Onboarding)]
public Task<DiscordServerGuide> ModifyServerGuideAsync(Optional<bool> enabled = default, Optional<WelcomeMessage> welcomeMessage = default, Optional<List<NewMemberAction>> newMemberActions = default, Optional<List<ResourceChannel>> resourceChannels = default, string? reason = null)
Parameters
enabled
Optional<bool>Whether the server guide is enabled.
welcomeMessage
Optional<WelcomeMessage>The server guide welcome message.
newMemberActions
Optional<List<NewMemberAction>>The new member actions.
resourceChannels
Optional<List<ResourceChannel>>The resource channels.
reason
stringThe reason.
Returns
Exceptions
- UnauthorizedException
Thrown when the client does not have the ManageGuild permission.
- BadRequestException
Thrown when an invalid parameter was provided.
- ServerErrorException
Thrown when Discord is unable to process the request.