Skip to content
New issue

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

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

Already on GitHub? # to your account

Add new webhook commands #50

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

LewsTherinTelescope
Copy link
Contributor

Adds two commands: mod, which exposes just a couple options (channel and edit link) to avoid option fatigue, and webhook, which exposes a fuller set (channel, edit link, username, avatar URL, webhook link/ID). (They use the same handlers, just a difference in what the metadata says it accepts.)

There's also a bit of commented-out code to prep for attachments support once the option type drops, but obviously can't be tested yet.

Advanced feature if you want to play around with it: starting the message content with the string RAW: will tell it to interpret the rest of it as raw message JSON, so you can do embeds and stuff that way.

@LewsTherinTelescope LewsTherinTelescope marked this pull request as draft March 9, 2022 22:33
@LewsTherinTelescope
Copy link
Contributor Author

Changed to draft, as I have a better version in the works but it depends on #51 and thus can't be merged yet

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant