Skip to content

Commit

Permalink
🐛 Fixed AudioChannel's codename (conflict with MessageChannel's)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas RACOT committed Jun 23, 2022
1 parent b95b722 commit 7c17d98
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/main/java/info/itsthesky/disky/elements/Types.java
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,7 @@ public static class DiSkyConverters {
Channel::getName,
input -> DiSky.getManager().searchIfAnyPresent(bot -> bot.getInstance().getVoiceChannelById(input))
).register();
new DiSkyType<>(AudioChannel.class, "audiochannel",
Channel::getName,
input -> DiSky.getManager().searchIfAnyPresent(bot -> bot.getInstance().getVoiceChannelById(input))
).register();
new DiSkyType<>(AudioChannel.class, "messagechannel", Channel::getName, null).register();
new DiSkyType<>(AudioChannel.class, "audiohannel", Channel::getName, null).register();
new DiSkyType<>(ThreadChannel.class, "threadchannel",
Channel::getName,
input -> DiSky.getManager().searchIfAnyPresent(bot -> bot.getInstance().getThreadChannelById(input))
Expand Down

0 comments on commit 7c17d98

Please # to comment.