From 8b2812abc5cdbd19934623de9e0afeb791612c66 Mon Sep 17 00:00:00 2001 From: hwangsihu Date: Sun, 8 Sep 2024 21:24:07 +0900 Subject: [PATCH 1/2] Update: Removed unnecessary parentheses --- src/events/client/InteractionCreate.ts | 3 +-- src/events/client/MessageCreate.ts | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/events/client/InteractionCreate.ts b/src/events/client/InteractionCreate.ts index 58b0d6b4e..86aad4139 100644 --- a/src/events/client/InteractionCreate.ts +++ b/src/events/client/InteractionCreate.ts @@ -62,8 +62,7 @@ export default class InteractionCreate extends Event { ) { return await (interaction.member as GuildMember) .send({ - content: T(locale, "event.interaction.no_send_message", { - }), + content: T(locale, "event.interaction.no_send_message", {}), }) .catch(() => {}); } diff --git a/src/events/client/MessageCreate.ts b/src/events/client/MessageCreate.ts index fd149f8b2..f330dee87 100644 --- a/src/events/client/MessageCreate.ts +++ b/src/events/client/MessageCreate.ts @@ -67,8 +67,7 @@ export default class MessageCreate extends Event { ) { return await message.author .send({ - content: T(locale, "event.message.no_send_message", { - }), + content: T(locale, "event.message.no_send_message", {}), }) .catch(() => {}); } From 84ffd30e652f7f4f006b0f45e70a1d50e727a19d Mon Sep 17 00:00:00 2001 From: hwangsihu Date: Sun, 8 Sep 2024 21:26:55 +0900 Subject: [PATCH 2/2] Update: Removed unnecessary parentheses --- src/events/client/InteractionCreate.ts | 2 +- src/events/client/MessageCreate.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/events/client/InteractionCreate.ts b/src/events/client/InteractionCreate.ts index 86aad4139..800f563ac 100644 --- a/src/events/client/InteractionCreate.ts +++ b/src/events/client/InteractionCreate.ts @@ -62,7 +62,7 @@ export default class InteractionCreate extends Event { ) { return await (interaction.member as GuildMember) .send({ - content: T(locale, "event.interaction.no_send_message", {}), + content: T(locale, "event.interaction.no_send_message"), }) .catch(() => {}); } diff --git a/src/events/client/MessageCreate.ts b/src/events/client/MessageCreate.ts index f330dee87..51fd82ffc 100644 --- a/src/events/client/MessageCreate.ts +++ b/src/events/client/MessageCreate.ts @@ -67,7 +67,7 @@ export default class MessageCreate extends Event { ) { return await message.author .send({ - content: T(locale, "event.message.no_send_message", {}), + content: T(locale, "event.message.no_send_message"), }) .catch(() => {}); }