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:
@@ -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(
|
||||||
|
Reference in New Issue
Block a user