discord.go 266 B

12345678910111213141516
  1. package main
  2. import (
  3. "github.com/bwmarrin/discordgo"
  4. )
  5. func channelIsBridgeable(channel *discordgo.Channel) bool {
  6. switch channel.Type {
  7. case discordgo.ChannelTypeGuildText:
  8. fallthrough
  9. case discordgo.ChannelTypeGuildNews:
  10. return true
  11. }
  12. return false
  13. }