Skip to content

Added a slash command for swizzleimage - #176

Open
warp-core wants to merge 2 commits into
3.0-WIPfrom
warp-core-swizzle-slash-command
Open

Added a slash command for swizzleimage#176
warp-core wants to merge 2 commits into
3.0-WIPfrom
warp-core-swizzle-slash-command

Conversation

@warp-core

Copy link
Copy Markdown

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