Skip to content

AttributeError: 'NoneType' object has no attribute 'channel_id' #3374

@sentry-io

Description

@sentry-io

Sentry Issue: BOT-3ZN

AttributeError: 'NoneType' object has no attribute 'channel_id'
(2 additional frame(s) were not displayed)
...
  File "bot/exts/filtering/filtering.py", line 971, in _resolve_action
    list_actions, list_message, list_triggers = await filter_list.actions_for(ctx)
  File "bot/exts/filtering/_filter_lists/antispam.py", line 73, in actions_for
    triggers = await sublist.filter_list_result(new_ctx)
  File "bot/exts/filtering/_filter_lists/filter_list.py", line 260, in filter_list_result
    return await self._create_filter_list_result(ctx, self.defaults, event_filters)
  File "bot/exts/filtering/_filter_lists/filter_list.py", line 99, in _create_filter_list_result
    if default_answer and await filter_.triggered_on(ctx):
  File "bot/exts/filtering/_filters/antispam/mentions.py", line 71, in triggered_on
    resolved = await bot.instance.get_partial_messageable(resolved.channel_id).fetch_message(

Unhandled exception in on_message.

Metadata

Metadata

Assignees

Labels

a: filtersRelated to message filters: (antimalware, antispam, filtering, token_remover)p: 1 - highHigh Prioritystatus: approvedThe issue has received a core developer's approvalt: bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions