Skip to content

[BUG] autotrigger does not mention a role when a thread is created #2961

@RC200119

Description

@RC200119

Describe the bug
The autrotrigger function does not mention a role when a new thread is created. The bot goes to mention the role however it errors out quoting that it is not a valid user or role in the thread. This issue occurred when only test47 was sent. No other longer sentences that included the word was used.

This bug also occurred with different roles and different methods of adding the word and mentioning the role.

Bot Info
Bot version (check with @modmail about): 3.8.4
Host method (Heroku, self-host, etc): Ubuntu 20.04 VPS server

To Reproduce
Steps to reproduce the behavior:

  1. Who can reproduce (ex. anyone, owners)? owners
  2. Where can it be reproduced (ex. in thread channels, recipient DM's)? setup channels for the bot in the server
  3. Done what to cause the error? ?autotrigger add "test47" notify @ROLE then DM'd the bot quoting test47
  4. Any recently made changes to your bot? No
  5. Errored: @ROLE is not a valid user or role.

Error Logs
https://hastebin.cc/atesojovuz

Screenshots
https://cdn.discordapp.com/attachments/644307178915627009/815189661534126110/unknown.png

Additional context
The issue above was also trialled with a a role that does not include emotes or square brackets.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis is a confirmed bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions