mirror of
https://github.com/thedevs-network/the-guard-bot
synced 2025-08-30 05:37:59 +00:00
Fix deletion of code-formatted commands
Fixes deletion of commands formatted as code
This commit is contained in:
parent
f9b572d6f5
commit
c5129de463
@ -12,6 +12,7 @@ const middlewareHandler = async ({ chat, message }, next) => {
|
||||
if (
|
||||
message &&
|
||||
message.text &&
|
||||
message.entities[0].type !== 'code' &&
|
||||
/^\/\w+/.test(message.text) &&
|
||||
chat.type !== 'private'
|
||||
) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user