github bwmarrin/discordgo v0.11.0
v0.11.0 Release

latest releases: v0.28.1, v0.28.0, v0.24.2...
8 years ago

Notices

Lots of changes in this release! Checkout the commit history and the milestone tracker. Read all the below breaking changes and join the Discord chat channel to ask any questions!

Breaking Changes

  • Renamed Opus channel to OpusSend b4b144e
  • Huge breaking change to how user callback for events are handled. Please see commit notes here #109 28236b4
  • ChannelMessages() func now takes beforeID and afterID as strings. #127 #120
  • Removed func GuildInviteCreate() which attempts to use a non-existent endpoint. This probably won't effect many people :) #100

Enhancements

  • With AddHandler() function you can now register any number of callback functions to any event. The function also returns a func that if called will remove the added function. See #109 iopred@7924727
  • Lots of improvements to Voice functionality, changing channels and voice guilds now works. Library voice API is much more stable now and less likely to change. #123 #112 #115
  • Added func ChannelVoiceLeave() which can be used to disconnect from voice entirely. #118
  • Added Bitrate field to Channel struct which will show the configured bitrate for voice channels. #116
  • Added new Guild Member funcs GuildMembers() and GuildMember() #114 #106 #105
  • Added GuildLeave() func to support the new method of leaving a guild (vs deleting) 0dea869 #110
  • Added func GuildMemberMove() that can be used to move a guild member from once voice channel to another (or to no channel) #92 22bb771
  • Added OpusRecv channel to Session.Voice. This can be used to receive opus audio data from Discord. b4b144e 68308c6 #54 See the dgvoice package for examples on how to make use of this.
  • Added support for sending TTS messages with ChannelMessageSendTTS func 363a28a #108
  • Added support for uploading files to channel with ChannelFileSend func bf3f2c5 #104
  • Added user callback support for the VoiceServerUpdate event 9d0be66347a07faf56439de89695a7853319ae6 #103

Bug Fixes

  • General cleanup/linting, several typo's, spelling fixes, comments added, dead code removed, etc.
  • VOICE_STATE_UPDATE event now calls the proper callback function #101

Don't miss a new discordgo release

NewReleases is sending notifications on new releases.