mirror of
https://github.com/DiscordSRV/Ascension.git
synced 2024-11-29 13:05:44 +01:00
Fix VoiceChannel not being mapped in DiscordAPIImpl#getMessageChannel
This commit is contained in:
parent
35efe6d85d
commit
c348e51145
@ -159,6 +159,8 @@ public class DiscordAPIImpl implements DiscordAPI {
|
|||||||
return getDirectMessageChannel((PrivateChannel) jda);
|
return getDirectMessageChannel((PrivateChannel) jda);
|
||||||
} else if (jda instanceof NewsChannel) {
|
} else if (jda instanceof NewsChannel) {
|
||||||
return getNewsChannel((NewsChannel) jda);
|
return getNewsChannel((NewsChannel) jda);
|
||||||
|
} else if (jda instanceof VoiceChannel) {
|
||||||
|
return getVoiceChannel((VoiceChannel) jda);
|
||||||
} else {
|
} else {
|
||||||
throw new IllegalArgumentException("Unmappable MessageChannel type: " + jda.getClass().getName());
|
throw new IllegalArgumentException("Unmappable MessageChannel type: " + jda.getClass().getName());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user