From f881d59b9ac8bdce5f3c5063d09a2cf4ec0e248c Mon Sep 17 00:00:00 2001 From: dnns01 <git@dnns01.de> Date: Tue, 7 May 2024 18:27:25 +0200 Subject: [PATCH] Fix issue with wrong arguments (removed self as first argument) --- fernuni_bot.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fernuni_bot.py b/fernuni_bot.py index 93d42f1..d19aaae 100644 --- a/fernuni_bot.py +++ b/fernuni_bot.py @@ -111,9 +111,9 @@ async def on_raw_reaction_remove(payload): await unpin_message(message) -@bot.event() -async def on_thread_create(self, thread: Thread) -> None: - thread_notification_role_id = self.bot.get_settings(thread.guild.id).thread_notification_role_id +@bot.event +async def on_thread_create(thread: Thread) -> None: + thread_notification_role_id = bot.get_settings(thread.guild.id).thread_notification_role_id msg = await thread.send(f"<@&{thread_notification_role_id}>") await msg.delete() -- GitLab