Set bot to deaf when connecting

This prevents a udp listener from starting which
is entirely unneeded for this type of bot.
This commit is contained in:
Bruce Marriner 2016-04-25 21:59:03 -05:00
parent 08b7e18609
commit 77d4767481

View file

@ -157,7 +157,7 @@ func loadSound() error {
// playSound plays the current buffer to the provided channel. // playSound plays the current buffer to the provided channel.
func playSound(s *discordgo.Session, guildID, channelID string) (err error) { func playSound(s *discordgo.Session, guildID, channelID string) (err error) {
// Join the provided voice channel. // Join the provided voice channel.
vc, err := s.ChannelVoiceJoin(guildID, channelID, false, false) vc, err := s.ChannelVoiceJoin(guildID, channelID, false, true)
if err != nil { if err != nil {
return err return err
} }