Skip to content

Added a slash command for swizzleimage #176

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: 3.0-WIP
Choose a base branch
from

Conversation

warp-core
Copy link

Because we can't include attachments with slash commands, the slash command version of swizzleimage will expect the images to swizzle to be attached to the last message sent before the command was sent, that message will also need to be from the same user as the slash command.
There's a bunch of repeated code here for each version of the command that could be combined (doing so would slightly change the way the current version of the command works but not hugely) but I'd like comments on this implementation before doing that refactor, also, since the non-slash commands are being deprecated, it might be better to just wipe the old code when that happens.

Because we can't include attachments with slash commands, the slash command version of swizzleimage will expect the images to swizzle to be attached to the last message sent before the command was sent, that message will also need to be from the same user as the slash command.
There's a bunch of repeated code here for each version of the command that could be combined (doing so would slightly change the way the current version of the command works but not hugely) but I'd like comments on this implementation before doing that refactor, also, since the non-slash commands are being deprecated, it might be better to just wipe the old code when that happens.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant