Table of Contents

Method CreateGuildSoundboardSoundAsync

Namespace
DisCatSharp.Net
Assembly
DisCatSharp.dll

CreateGuildSoundboardSoundAsync(ulong, string, string, double?, ulong?, string?, string?)

Creates a new soundboard sound in the guild.

public Task<DiscordSoundboardSound> CreateGuildSoundboardSoundAsync(ulong guildId, string name, string sound, double? volume = null, ulong? emojiId = null, string? emojiName = null, string? reason = null)

Parameters

guildId ulong

The guild ID.

name string

The name of the soundboard sound.

sound string

The base64-encoded sound data (MP3 or OGG format).

volume double?

The volume of the soundboard sound (optional, defaults to 1).

emojiId ulong?

The ID of the custom emoji (optional).

emojiName string

The unicode character of the standard emoji (optional).

reason string

The reason.

Returns

Task<DiscordSoundboardSound>