Conversation
They should now all work with slash commands, and also a little refactoring.
Author
|
Timeout works differently as a slash command than the normal command. It can no longer handle multiple users at a time but the time can be given in units of seconds, minutes, hours, days, or weeks and a reason can be given (though I didn't have it do anything with that reason yet). |
Missed ModerationSlashCommand before
warp-core
marked this pull request as draft
November 2, 2021 01:53
Changed the way Playlist.remove() works so it takes an index in the array holding the queue instead of the number corresponding to where the song to be removed would appear in the queue embed and changed Audio.remove() accordingly. Also removed a couple of (apparently) unused immports.
A few changes to the Audio classes
For whatever reason, I didn't upload changes I made here before. Doing that now.
Somewhere along the line, code got replicated here, I'm guessing it was when merging the master into this branch.
This should be the id of the server/guild the commands should be registered in.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
To do:
Finish this to do list
Test everything
Ensure coding style uniformity
Lookup, Show and Showimage currently do not work as slash commands, I'm not sure what the issue is.
Update to slash commands:
Fix bugs: