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:
parent
08b7e18609
commit
77d4767481
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue