diff --git a/lib/src/builders/soundboard.dart b/lib/src/builders/soundboard.dart index 7913a414e..9719fe5a3 100644 --- a/lib/src/builders/soundboard.dart +++ b/lib/src/builders/soundboard.dart @@ -29,14 +29,14 @@ class SoundboardSoundBuilder extends CreateBuilder { }; } -class UpdateSoundBuilder extends UpdateBuilder { +class UpdateSoundboardSoundBuilder extends UpdateBuilder { String name; - double volume; + double? volume; - Emoji emoji; + Emoji? emoji; - UpdateSoundBuilder({required this.name, this.volume = sentinelDouble, this.emoji = sentinelEmoji}); + UpdateSoundboardSoundBuilder({required this.name, this.volume = sentinelDouble, this.emoji = sentinelEmoji}); @override Map build() => { diff --git a/lib/src/http/managers/soundboard_manager.dart b/lib/src/http/managers/soundboard_manager.dart index 61999763f..404d41d02 100644 --- a/lib/src/http/managers/soundboard_manager.dart +++ b/lib/src/http/managers/soundboard_manager.dart @@ -93,7 +93,7 @@ class GuildSoundboardManager extends SoundboardManager { return soundboard; } - Future update(Snowflake id, UpdateSoundBuilder builder, {String? auditLogReason}) async { + Future update(Snowflake id, UpdateSoundboardSoundBuilder builder, {String? auditLogReason}) async { final route = HttpRoute() ..guilds(id: guildId.toString()) ..soundboardSounds(id: id.toString()); diff --git a/lib/src/models/soundboard/soundboard.dart b/lib/src/models/soundboard/soundboard.dart index 773f01d3f..2483b2514 100644 --- a/lib/src/models/soundboard/soundboard.dart +++ b/lib/src/models/soundboard/soundboard.dart @@ -13,7 +13,7 @@ class PartialSoundboardSound extends ManagedSnowflakeEntity { PartialSoundboardSound({required super.id, required this.manager}); /// Update this entity using the provided builder and return the updated entity. - Future update(UpdateSoundBuilder builder) { + Future update(UpdateSoundboardSoundBuilder builder) { assert(manager is GuildSoundboardManager); return (manager as GuildSoundboardManager).update(id, builder);