From 4fa9092629cd70a9373b0e312c86a11365aa5de2 Mon Sep 17 00:00:00 2001 From: t3tra Date: Sat, 14 Sep 2024 01:58:43 +0900 Subject: [PATCH 1/2] Update link_embedder.py --- cogs/link_embedder.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cogs/link_embedder.py b/cogs/link_embedder.py index 1fdc99b..978e3e1 100644 --- a/cogs/link_embedder.py +++ b/cogs/link_embedder.py @@ -33,6 +33,10 @@ async def on_message(self, message: discord.Message): if message.guild.id != guild_id: # 現在のサーバー以外のリンクには反応しない return + + # 宣伝チャンネルを除外 + if channel_id == 775004819004981258: + return try: # リンク先のメッセージオブジェクトを取得 From 91e96ab90705b2c7b316188581d895acafcd4f15 Mon Sep 17 00:00:00 2001 From: t3tra Date: Sat, 14 Sep 2024 02:07:33 +0900 Subject: [PATCH 2/2] Update link_embedder.py --- cogs/link_embedder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/link_embedder.py b/cogs/link_embedder.py index 978e3e1..11e0a3a 100644 --- a/cogs/link_embedder.py +++ b/cogs/link_embedder.py @@ -35,7 +35,7 @@ async def on_message(self, message: discord.Message): return # 宣伝チャンネルを除外 - if channel_id == 775004819004981258: + if channel_id in [775004819004981258]: return try: