Skip to content
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

Fix #622: support for WebhookExecute msg response #663

Merged
merged 1 commit into from
Jul 22, 2019

Conversation

qaisjp
Copy link
Contributor

@qaisjp qaisjp commented Jun 17, 2019

  • Should the API be changed?
  • Is the "wait" doc described fine?

qaisjp added a commit to qaisjp/matterbridge that referenced this pull request Jun 17, 2019
Messages sent via webhook can now be deleted. It seems it can do this
without any special permissions.

This copies discordgo.WebhookExecute and makes it support the returning
of discordgo.Message.

A pull request has been sent upstream, so we should use that if
@bwmariin accepts the pull request:

bwmarrin/discordgo#663

Changes in behaviour (webhook mode only):
- Previously messages *edited* on other platforms would just be
retransmitted as a brand new message to Discord.
- Message *edits* will now be ignored.
- Debug: message edits will now print out a "permission error".

In the future it may be good to send an "message edited" react to those
webhook messages, so at least people know that the message was edited on
other platforms. (Even though it can't actually show the new message.)

Alternatively, message edits could just send a brand new message with a
link back to the old one. This is a little ugly but it would ensure that
Discord users are able to see the edited message. These "message edit
notifications" would be sent from the bot user (not from a webhook), so
we could edit the "edit notification" if subsequent edits to the
original message are made.
@qaisjp qaisjp changed the base branch from master to develop June 20, 2019 05:47
@qaisjp qaisjp force-pushed the feature/webhook-create-response branch from b3d3634 to 257422b Compare June 20, 2019 05:51
42wim pushed a commit to 42wim/matterbridge that referenced this pull request Jul 8, 2019
* Support webhook message deletions (discord)

Messages sent via webhook can now be deleted. It seems it can do this
without any special permissions.

This copies discordgo.WebhookExecute and makes it support the returning
of discordgo.Message.

A pull request has been sent upstream, so we should use that if
@bwmariin accepts the pull request:

bwmarrin/discordgo#663

Changes in behaviour (webhook mode only):
- Previously messages *edited* on other platforms would just be
retransmitted as a brand new message to Discord.
- Message *edits* will now be ignored.
- Debug: message edits will now print out a "permission error".

In the future it may be good to send an "message edited" react to those
webhook messages, so at least people know that the message was edited on
other platforms. (Even though it can't actually show the new message.)

Alternatively, message edits could just send a brand new message with a
link back to the old one. This is a little ugly but it would ensure that
Discord users are able to see the edited message. These "message edit
notifications" would be sent from the bot user (not from a webhook), so
we could edit the "edit notification" if subsequent edits to the
original message are made.
@iopred
Copy link
Collaborator

iopred commented Jul 22, 2019

This is a breaking change, but I really can't argue for it. My apologies to anyone who has to add a _, to their code.

@iopred iopred merged commit d3c96d1 into bwmarrin:develop Jul 22, 2019
Bios-Marcel pushed a commit to Bios-Marcel/discordgo that referenced this pull request Jul 22, 2019
@qaisjp qaisjp deleted the feature/webhook-create-response branch July 31, 2019 01:19
@bwmarrin bwmarrin added this to the v0.20.0 milestone Aug 27, 2019
zeridon pushed a commit to zeridon/matterbridge that referenced this pull request Feb 12, 2020
* Support webhook message deletions (discord)

Messages sent via webhook can now be deleted. It seems it can do this
without any special permissions.

This copies discordgo.WebhookExecute and makes it support the returning
of discordgo.Message.

A pull request has been sent upstream, so we should use that if
@bwmariin accepts the pull request:

bwmarrin/discordgo#663

Changes in behaviour (webhook mode only):
- Previously messages *edited* on other platforms would just be
retransmitted as a brand new message to Discord.
- Message *edits* will now be ignored.
- Debug: message edits will now print out a "permission error".

In the future it may be good to send an "message edited" react to those
webhook messages, so at least people know that the message was edited on
other platforms. (Even though it can't actually show the new message.)

Alternatively, message edits could just send a brand new message with a
link back to the old one. This is a little ugly but it would ensure that
Discord users are able to see the edited message. These "message edit
notifications" would be sent from the bot user (not from a webhook), so
we could edit the "edit notification" if subsequent edits to the
original message are made.
ErikMcClure pushed a commit to ErikMcClure/discordgo that referenced this pull request Aug 4, 2020
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.

None yet

3 participants