fix channel fetch method for channel mentions [fix
@@ -221,6 +221,10 @@ func FetchChannel(s *discordgo.Session, guildID, resolvable string, condition ..
func(r *discordgo.Channel, resolvable string) bool {
return r.ID == resolvable
},
+ func(r *discordgo.Channel, resolvable string) bool {
+ l := len(resolvable)
+ return l > 3 && r.ID == resolvable[2:l-1]
+ },
func(r *discordgo.Channel, resolvable string) bool {
return r.Name == resolvable
},
