-
-
Notifications
You must be signed in to change notification settings - Fork 696
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Voice Verify Button Instead of Voice Verify Command (#2856)
* Added additional ignore to `.gitignore` * Setting structure for view class * Transferring voice_verification functionality to button view * Completed VerifyView and added cog_load * Moved `voice_verify()` functionality to button. Added `prepare_voice_button()` to create the persistent button and message. * Tweaked message deletion times to be more consistent * Voice Gate rework - Removed unused imports caused by changes - Changed voice pings to reflect the use of button instead of command - Changed from deleting pings by message id in favor of using built in `delete_after` arguments on messages - Changed `delete_after` to use values from config - Redis cache no longer tracks message ids along with user id for the purpose of tracking people who have been pinged - * Changes to Structure and Logic - Removed superfluous new line in constants file - Removed ModLog from file as it is no longer needed - New to voice chat users will no longer be sent a DM, and will instead only be sent a ping in the verification channel - Changed class name from `VerifyView` to `VoiceVerificationView` for added clarity - Adjusted voice button role check logic to reduce number of api calls * Corrected logging formatting - Formatting now correctly using %-style instead of f-strings * Swapped channel getting & corrected redundant logic - Swapped get_channel to get_or_fetch_channel to make sure channel is retrieved - Adjusted list comprehension and for loop to be a single for loop * Change ping phrasing for clarity Co-authored-by: wookie184 <wookie1840@gmail.com> --------- Co-authored-by: wookie184 <wookie1840@gmail.com>
- Loading branch information
Showing
3 changed files
with
117 additions
and
175 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters