Switch startup, config, commands and db migrations to mautrix-go systems
This commit is contained in:
16
discord.go
Normal file
16
discord.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/bwmarrin/discordgo"
|
||||
)
|
||||
|
||||
func channelIsBridgeable(channel *discordgo.Channel) bool {
|
||||
switch channel.Type {
|
||||
case discordgo.ChannelTypeGuildText:
|
||||
fallthrough
|
||||
case discordgo.ChannelTypeGuildNews:
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
Reference in New Issue
Block a user