Explorar o código

Fix airhorn example.

Chris Rhodes %!s(int64=8) %!d(string=hai) anos
pai
achega
d28edb024e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      examples/airhorn/main.go

+ 1 - 1
examples/airhorn/main.go

@@ -102,7 +102,7 @@ func messageCreate(s *discordgo.Session, m *discordgo.MessageCreate) {
 // This function will be called (due to AddHandler above) every time a new
 // guild is joined.
 func guildCreate(s *discordgo.Session, event *discordgo.GuildCreate) {
-	if event.Guild.Unavailable != nil {
+	if event.Guild.Unavailable {
 		return
 	}