Voice channel mention (#932)

* Voice channel mention

I recently noticed voice channels can be mentioned just like text channels. A small change to the code to implement this feature.

* Voice channel mention

* vc.getName() changed to vc.getAsMention()
This commit is contained in:
Louk
2021-10-02 21:17:00 +02:00
committed by GitHub
parent 95de05ff2d
commit e08c1491c2
5 changed files with 6 additions and 6 deletions

View File

@@ -62,7 +62,7 @@ public class SetvcCmd extends AdminCommand
else
{
s.setVoiceChannel(list.get(0));
event.reply(event.getClient().getSuccess()+" Music can now only be played in **"+list.get(0).getName()+"**");
event.reply(event.getClient().getSuccess()+" Music can now only be played in "+list.get(0).getAsMention());
}
}
}