AS a Server Moderator, I want to be able to timeout a user using Discord's built-in timeout function #98
Labels
No labels
blocked
duplicate
enhancement
good first issue
help wanted
invalid
needs criteria
needs estimate
needs testing
question
type
admin
type
bug
type
change
type
defect
type
dependencies
type
documentation
type
epic
type
incident
type
investigation
type
spike
type
story
type
subtask
wontfix
blocked
duplicate
needs criteria
needs designs
needs estimate
needs testing
question
type
admin
type
alert
type
bug
type
defect
type
dependencies
type
design
type
documentation
type
epic
type
incident
type
investigation
type
spike
type
story
won't fix
No project
No assignees
2 participants
Notifications
Total time spent: 8 hours 23 minutes
Due date
Vylpes
8 hours 8 minutes
VylpesTester
15 minutes
No due date set.
Dependencies
No dependencies set.
Reference: RabbitLabs/vylbot-app#98
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Epic: #253
Story Points: 5
AS a Server Moderator, I want to be able to timeout a user using Discord's built-in timeout function
SO THAT I don't have to worry about unmuting them myself
Acceptance Criteria
AS a Server Moderator
GIVEN I want to timeout a user
WHEN I run
/timeout <user> <minutes> <reason>
THEN the bot should timeout the user for the stated time with the reason logged
AS a Server Moderator
GIVEN I want to timeout a user
WHEN I run the timeout command
THEN the bot should log this in the timeout log channel
AS a Server Member
GIVEN I have DMs enabled
WHEN I am timed out
THEN the bot should DM the reason
AS a Server Member
GIVEN I have DMs disabled
WHEN I am timed out
THEN the bot should tell the moderator ONLY that it couldn't DM the user
Notes
Subtasks
1h, 30m
into the length it ignores the1h
, presumably because of the commaMight also be worth getting the bot to reply the reason in their DMs - What should we do if the DMs are off?
Maybe it would be worth keeping the legacy mute command for now?
I say yes, and then deprecate it and remove it a few releases from now
If their DMs are off, then we won't be able to DM it, so don't do anything. If the user wants to know what they did then they can ask a mod
Mute command should time out a user using discord's timeout functionto AS a Server Moderator, I want to be able to timeout a user using Discord's built-in timeout functionI should also DM the user when they are warned
Going to leave the refactoring of tests for later - Really need to get 3.1 out soon
When timing out a user, which the bot does not have permission to do, the application doesn't respond.
This seems to only happen for timing out other bots
If I input
1h, 30m
into the length it ignores the1h
, presumably because of the commaThis has passed testing.