Implemented server muting or voice channel muting functionality based on the boolean value provided with the /listening command.
When users execute the /listening command with the boolean value set to True, their server name is updated to include Can't Talk after their name, and they are server muted or voice channel muted.
When users execute the /listening command with the boolean value set to False, their server name is updated to remove Can't Talk from their name, and they are no longer server muted or voice channel muted.
Documentation Updated?
[ ] Yes
[x] No
Under Feature Flag
[x] Yes
[ ] No
Database Changes
[ ] Yes
[x] No
Breaking Changes
[ ] Yes
[x] No
Development Tested?
[x] Yes
[ ] No
Screenshots
Screenshot 1
[Screencast from 30-04-24 02:30:17 PM IST.webm](https://github.com/Real-Dev-Squad/discord-slash-commands/assets/55826451/d85a59e1-e84d-488f-860f-d54cec790858)
Test Coverage
Screenshot 1
![Screenshot from 2024-04-30 17-36-47](https://github.com/Real-Dev-Squad/discord-slash-commands/assets/55826451/81f298e6-b878-4655-b6ab-54a7ac951b24)
![Screenshot from 2024-04-30 17-37-34](https://github.com/Real-Dev-Squad/discord-slash-commands/assets/55826451/df218dc1-a3f7-4b7d-99b2-01476ba250cd)
Libraries like jest-fetch-mock are used to mock the fetch function, allowing us to simulate HTTP requests and responses without actually hitting the external API.
Date: 30th April, 2024
Developer Name: @Achintya-Chatterjee
Issue Ticket Number
closes #202
Description
Implemented server muting or voice channel muting functionality based on the boolean value provided with the
/listening
command.When users execute the
/listening
command with the boolean value set toTrue
, their server name is updated to includeCan't Talk
after their name, and they are server muted or voice channel muted.When users execute the
/listening
command with the boolean value set toFalse
, their server name is updated to removeCan't Talk
from their name, and they are no longer server muted or voice channel muted.Documentation Updated?
Under Feature Flag
Database Changes
Breaking Changes
Development Tested?
Screenshots
Screenshot 1
[Screencast from 30-04-24 02:30:17 PM IST.webm](https://github.com/Real-Dev-Squad/discord-slash-commands/assets/55826451/d85a59e1-e84d-488f-860f-d54cec790858)Test Coverage
Screenshot 1
![Screenshot from 2024-04-30 17-36-47](https://github.com/Real-Dev-Squad/discord-slash-commands/assets/55826451/81f298e6-b878-4655-b6ab-54a7ac951b24) ![Screenshot from 2024-04-30 17-37-34](https://github.com/Real-Dev-Squad/discord-slash-commands/assets/55826451/df218dc1-a3f7-4b7d-99b2-01476ba250cd)Additional Notes
Discod API
jest-fetch-mock
are used to mock the fetch function, allowing us to simulate HTTP requests and responses without actually hitting the external API.