🐛 Fixed comparison of entity type in IsCommand helper
This commit is contained in:
parent
66a5e4e310
commit
db9688eb9f
|
@ -9,7 +9,7 @@ func (msg *Message) IsCommand() bool {
|
||||||
}
|
}
|
||||||
|
|
||||||
return msg.Entities[0].Offset == 0 &&
|
return msg.Entities[0].Offset == 0 &&
|
||||||
msg.Entities[0].Type != EntityBotCommand
|
msg.Entities[0].Type == EntityBotCommand
|
||||||
}
|
}
|
||||||
|
|
||||||
func (msg *Message) Command() string {
|
func (msg *Message) Command() string {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user