Skip to content

[BUG] Nonetype throwing in points #159

Description

@Xarlos89

Describe the bug

:: 06-19 05:16.51 :: ERROR :: client.py line 582 --- Ignoring exception in on_message
Traceback (most recent call last):
  File "/bot/.venv/lib/python3.12/site-packages/discord/client.py", line 508, in _run_event
    await coro(*args, **kwargs)
  File "/bot/src/bot/cogs/admin/points.py", line 205, in on_message
    if message.guild.id != int(os.getenv("MASTER_GUILD")):
       ^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'id'

To Reproduce

Coming from points, not sure how. Potentially in DM?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions