Skip to content
Snippets Groups Projects
Commit f881d59b authored by dnns01's avatar dnns01
Browse files

Fix issue with wrong arguments (removed self as first argument)

parent 4ef14919
No related branches found
No related tags found
No related merge requests found
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment