Table of Contents

Method ModifyAsync

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

ModifyAsync(Action<SoundboardSoundEditModel>)

Modifies the soundboard sound.

public Task<DiscordSoundboardSound> ModifyAsync(Action<SoundboardSoundEditModel> action)

Parameters

action Action<SoundboardSoundEditModel>

The action to configure the soundboard sound edit model.

Returns

Task<DiscordSoundboardSound>

The updated DiscordSoundboardSound.

Exceptions

NotFoundException

Throws when the soundboard sound cannot be found

UnauthorizedException

Throws when the client does not have the ManageGuildExpressions permission.

ServerErrorException

Thrown when Discord is unable to process the request.