Der Bot nimmt keine zugewiesenen Rollen #287

Closed
opened 2023-03-31 12:02:22 +02:00 by edraft · 0 comments
Owner

AutoRole tut nicht richtig

<2023-03-31 09:59:55.540578> [ ERROR ] [ cpl_discord.service.discord_service ]: 'RawReactionActionEvent' object has no attribute 'id' -> Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/cpl_discord/service/discord_service.py", line 102, in _handle_event
await func(*args, **kwargs)
File "/app/modules/auto_role/events/auto_role_on_raw_reaction_remove.py", line 33, in on_raw_reaction_remove
await self._reaction_handler.handle(payload, "remove")
File "/app/modules/auto_role/helper/auto_role_reaction_handler.py", line 35, in handle
user = guild.get_member(payload.id)
AttributeError: 'RawReactionActionEvent' object has no attribute 'id'

AutoRole tut nicht richtig <2023-03-31 09:59:55.540578> [ ERROR ] [ cpl_discord.service.discord_service ]: 'RawReactionActionEvent' object has no attribute 'id' -> Traceback (most recent call last): File "/usr/local/lib/python3.10/site-packages/cpl_discord/service/discord_service.py", line 102, in _handle_event await func(*args, **kwargs) File "/app/modules/auto_role/events/auto_role_on_raw_reaction_remove.py", line 33, in on_raw_reaction_remove await self._reaction_handler.handle(payload, "remove") File "/app/modules/auto_role/helper/auto_role_reaction_handler.py", line 35, in handle user = guild.get_member(payload.id) AttributeError: 'RawReactionActionEvent' object has no attribute 'id'
edraft added this to the 1.0.4 milestone 2023-03-31 12:02:22 +02:00
edraft added the
bug
label 2023-03-31 12:02:25 +02:00
edraft referenced this issue from a commit 2023-03-31 12:03:09 +02:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: sh-edraft.de/sh_discord_bot#287
No description provided.