github.com/starshine-sys/bcr@v0.21.0/match.go (about)

     1  package bcr
     2  
     3  import (
     4  	"github.com/diamondburned/arikawa/v3/discord"
     5  )
     6  
     7  // MatchPrefix returns true if the message content contains any of the prefixes
     8  func (r *Router) MatchPrefix(m discord.Message) bool {
     9  	return r.Prefixer(m) != -1
    10  }