AS a Server Moderator, I want to be able to timeout a user using Discord's built-in timeout function #98

Closed
opened 2022-01-16 14:41:24 +00:00 by Vylpes · 9 comments
Vylpes commented 2022-01-16 14:41:24 +00:00 (Migrated from github.com)

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

  • Create Timeout command
  • Make bot DM the user if it can
  • Log to a new timeout channel config
  • Log to a new audit type
  • Update tests
    • Create test draft
  • When timing out a user, which the bot does not have permission to do, the application doesn't respond.
  • If I input 1h, 30m into the length it ignores the 1h, presumably because of the comma
  • Update changes requested
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 - https://discord.js.org/#/docs/discord.js/stable/class/GuildMember?scrollTo=timeout ## Subtasks - [x] Create Timeout command - [x] Make bot DM the user if it can - [x] Log to a new timeout channel config - [x] Log to a new audit type - [x] Update tests - [x] Create test draft - [x] When timing out a user, which the bot does not have permission to do, the application doesn't respond. - [x] If I input `1h, 30m` into the length it ignores the `1h`, presumably because of the comma - [x] Update changes requested
Vylpes added the
type
story
needs criteria
needs estimate
labels 2022-12-04 15:02:56 +00:00

Might also be worth getting the bot to reply the reason in their DMs - What should we do if the DMs are off?

Might 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?

Maybe it would be worth keeping the legacy mute command for now?
Vylpes added the
question
label 2022-12-15 11:02:41 +00:00
Vylpes added this to the 3.1 milestone 2022-12-15 11:02:46 +00:00

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

> 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

Might also be worth getting the bot to reply the reason in their DMs - What should we do if the DMs are off?

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

> Might also be worth getting the bot to reply the reason in their DMs - What should we do if the DMs are off? 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
Vylpes removed the
question
label 2023-01-15 14:23:16 +00:00
Vylpes changed title from Mute command should time out a user using discord's timeout function to AS a Server Moderator, I want to be able to timeout a user using Discord's built-in timeout function 2023-01-15 14:24:02 +00:00

I should also DM the user when they are warned

I should also DM the user when they are warned
Vylpes removed the
needs criteria
label 2023-01-15 14:35:32 +00:00
Vylpes removed the
needs estimate
label 2023-03-12 15:57:47 +00:00
Vylpes added this to the 3.1 Sprint 8 project 2023-03-19 14:15:26 +00:00
Vylpes self-assigned this 2023-03-19 14:18:23 +00:00
Vylpes added spent time 2023-03-20 18:48:20 +00:00
50 minutes
Vylpes started working 2023-03-24 17:23:27 +00:00
Vylpes stopped working 2023-03-24 17:51:31 +00:00
28 minutes 4 seconds
Vylpes started working 2023-03-25 14:32:05 +00:00
Vylpes stopped working 2023-03-25 15:29:35 +00:00
57 minutes 30 seconds
Vylpes started working 2023-03-27 18:07:58 +01:00
Vylpes stopped working 2023-03-27 18:32:36 +01:00
24 minutes 38 seconds
Vylpes started working 2023-03-29 18:19:25 +01:00
Vylpes stopped working 2023-03-29 18:34:46 +01:00
15 minutes 21 seconds
Vylpes started working 2023-04-01 14:30:15 +01:00
Vylpes stopped working 2023-04-01 16:43:32 +01:00
2 hours 13 minutes
Vylpes modified the project from 3.1 Sprint 8 to 3.1 Sprint 9 2023-05-14 14:13:02 +01:00
Vylpes started working 2023-05-19 18:02:17 +01:00
Vylpes stopped working 2023-05-19 18:40:22 +01:00
38 minutes 5 seconds
Vylpes started working 2023-05-22 18:14:23 +01:00
Vylpes stopped working 2023-05-22 18:44:04 +01:00
29 minutes 41 seconds
Vylpes started working 2023-05-27 14:33:41 +01:00
Vylpes stopped working 2023-05-27 15:47:57 +01:00
1 hour 14 minutes
Vylpes modified the project from 3.1 Sprint 9 to 3.1 Sprint 10 2023-06-11 15:02:15 +01:00
Vylpes started working 2023-06-12 17:21:35 +01:00
Vylpes stopped working 2023-06-12 17:24:28 +01:00
2 minutes 53 seconds

Going to leave the refactoring of tests for later - Really need to get 3.1 out soon

Going to leave the refactoring of tests for later - Really need to get 3.1 out soon
Member

When timing out a user, which the bot does not have permission to do, the application doesn't respond.

image

This seems to only happen for timing out other bots

When timing out a user, which the bot does not have permission to do, the application doesn't respond. ![image](/attachments/ae3f4b49-c8b4-415f-919f-d96c52cb3f27) This seems to only happen for timing out other bots
Member

If I input 1h, 30m into the length it ignores the 1h, presumably because of the comma

If I input `1h, 30m` into the length it ignores the `1h`, presumably because of the comma
VylpesTester added spent time 2023-06-17 15:20:30 +01:00
10 minutes
Vylpes added spent time 2023-06-19 17:51:00 +01:00
25 minutes
Vylpes modified the project from 3.1 Sprint 10 to 3.1 Sprint 11 2023-06-25 14:13:01 +01:00
Vylpes added spent time 2023-06-26 18:00:52 +01:00
10 minutes
Member

This has passed testing.

This has passed testing.
VylpesTester added spent time 2023-07-01 16:11:05 +01:00
5 minutes
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Total time spent: 8 hours 23 minutes
Vylpes
8 hours 8 minutes
VylpesTester
15 minutes
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: RabbitLabs/vylbot-app#98
No description provided.