Twentysix26 / x26-Cogs

General purpose cogs for Red V3
GNU General Public License v3.0
41 stars 30 forks source link

[Defender] Add timeout action #86

Closed DoctorDinosaur closed 2 months ago

DoctorDinosaur commented 2 months ago

Closes #64

Let me know if you want me to PR docs too

Adds timeout_user action, and a new timedelta validator which is limited to 28 days.

DoctorDinosaur commented 2 months ago

Doesn't allow userid argument from #64

But I don't think it's needed, action is user context.

Twentysix26 commented 2 months ago

Thank you for your contribution. I actually happened to code this just the other day and it was almost exactly the same as your PR, but this one is missing the ability to pass an empty argument to remove the timeout