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
ulongThe guild ID.
name
stringThe name of the soundboard sound.
sound
stringThe 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
stringThe unicode character of the standard emoji (optional).
reason
stringThe reason.