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
guildIdulongThe guild ID.
namestringThe name of the soundboard sound.
soundstringThe base64-encoded sound data (MP3 or OGG format).
volumedouble?The volume of the soundboard sound (optional, defaults to 1).
emojiIdulong?The ID of the custom emoji (optional).
emojiNamestringThe unicode character of the standard emoji (optional).
reasonstringThe reason.