Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for soundboard #708

Merged
merged 20 commits into from
Oct 16, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix typecast as VoiceChannel
  • Loading branch information
Lexedia committed Oct 11, 2024
commit ee80924d20edc79937156c744def7c2895fb0acb
4 changes: 2 additions & 2 deletions lib/src/models/gateway/events/voice.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:nyxx/src/models/channel/voice_channel.dart';
import 'package:nyxx/src/models/channel/channel.dart';
import 'package:nyxx/src/models/emoji.dart';
import 'package:nyxx/src/models/gateway/event.dart';
import 'package:nyxx/src/models/guild/guild.dart';
@@ -86,7 +86,7 @@ class VoiceChannelEffectSendEvent extends DispatchEvent {
});

/// The channel this effect was sent in.
VoiceChannel get channel => gateway.client.channels[channelId] as VoiceChannel;
PartialChannel get channel => gateway.client.channels[channelId];

/// The guild this effect was sent in.
PartialGuild get guild => gateway.client.guilds[guildId];
Loading