From 77d47674815edd2b6f32304721e87fd0483875f0 Mon Sep 17 00:00:00 2001 From: Bruce Marriner Date: Mon, 25 Apr 2016 21:59:03 -0500 Subject: [PATCH] Set bot to deaf when connecting This prevents a udp listener from starting which is entirely unneeded for this type of bot. --- examples/airhorn/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/airhorn/main.go b/examples/airhorn/main.go index ba0312e..2033001 100644 --- a/examples/airhorn/main.go +++ b/examples/airhorn/main.go @@ -157,7 +157,7 @@ func loadSound() error { // playSound plays the current buffer to the provided channel. func playSound(s *discordgo.Session, guildID, channelID string) (err error) { // Join the provided voice channel. - vc, err := s.ChannelVoiceJoin(guildID, channelID, false, false) + vc, err := s.ChannelVoiceJoin(guildID, channelID, false, true) if err != nil { return err }