2
0
mirror of https://github.com/thedevs-network/the-guard-bot synced 2025-08-30 13:47:54 +00:00

satisfy linter

This commit is contained in:
Martin Rys
2021-02-05 18:17:58 +01:00
parent 53fd31bf07
commit 5bd57355b3

View File

@@ -22,7 +22,8 @@ const adminMention = ({ user }) =>
const reportHandler = async ctx => { const reportHandler = async ctx => {
if (!ctx.chat.type.endsWith('group')) return null; if (!ctx.chat.type.endsWith('group')) return null;
// Ignore monospaced reports // 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) { if (!ctx.message.reply_to_message) {
await ctx.deleteMessage(); await ctx.deleteMessage();
return ctx.replyWithHTML( return ctx.replyWithHTML(