mirror of
https://github.com/thedevs-network/the-guard-bot
synced 2025-08-30 05:37:59 +00:00
satisfy linter
This commit is contained in:
parent
53fd31bf07
commit
5bd57355b3
@ -22,7 +22,8 @@ const adminMention = ({ user }) =>
|
||||
const reportHandler = async ctx => {
|
||||
if (!ctx.chat.type.endsWith('group')) return null;
|
||||
// Ignore monospaced reports
|
||||
if (ctx.message.entities?.[0]?.type === "code" && ctx.message.entities[0].offset === 0) return null;
|
||||
if (ctx.message.entities?.[0]?.type === 'code' && ctx.message.entities[0].offset === 0)
|
||||
return null;
|
||||
if (!ctx.message.reply_to_message) {
|
||||
await ctx.deleteMessage();
|
||||
return ctx.replyWithHTML(
|
||||
|
Loading…
x
Reference in New Issue
Block a user