Skip to content

[WarnSystem] Use built-in timeouts #190

@laggron42

Description

@laggron42

Type of feature request

API functionality, Command

The cog your feature request is for.

WarnSystem

Description of the feature you're suggesting

Hehe I like those templates.

Discord released built-in timeouts, muting the member on the whole server. This has a lot of great points, like a more friendly UI while timed out, a built-in interface for muting and selecting the duration, and a countdown until the end of the timeout.

This does present a few limitations compared to manual role mute:

  • A mute cannot be permanent, it must have a duration
  • Maximum duration is a week 28 days
  • Can't customize permissions, like letting the muted members in a special channel (but that's not my concern here)
  • Cannot detect a manual timeout

The last point is pretty annoying, it's technically possible to know when a member is timed out (or gets it removed), but discord.py doesn't support that new key. And no, patching discord.py on runtime on a Redbot cog is a VERY bad idea.
So, WarnSystem won't be able to log or clear a timeout done manually until Red provides their new library.


Given then limitations, I will probably make all mute-related commands hidden, add a toggle, and make the built-in timeout the default action.

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions