diff --git a/common/src/main/java/com/discordsrv/common/discord/api/DiscordAPIImpl.java b/common/src/main/java/com/discordsrv/common/discord/api/DiscordAPIImpl.java index adec1314..accb8a62 100644 --- a/common/src/main/java/com/discordsrv/common/discord/api/DiscordAPIImpl.java +++ b/common/src/main/java/com/discordsrv/common/discord/api/DiscordAPIImpl.java @@ -159,6 +159,8 @@ public class DiscordAPIImpl implements DiscordAPI { return getDirectMessageChannel((PrivateChannel) jda); } else if (jda instanceof NewsChannel) { return getNewsChannel((NewsChannel) jda); + } else if (jda instanceof VoiceChannel) { + return getVoiceChannel((VoiceChannel) jda); } else { throw new IllegalArgumentException("Unmappable MessageChannel type: " + jda.getClass().getName()); }