summaryrefslogtreecommitdiffstats
path: root/bridge/discord/handlers.go
Commit message (Collapse)AuthorAgeFilesLines
* Ignore events from other guilds, add nosendjoinpart support (discord) (#1846)Sam W2022-06-241-0/+38
| | | | | | | | | | | | | | | | * discord: add nosendjoinpart support This allows the discord bridge to be configured with `nosendjoinpart`, preventing discord-originating join/part messages from being send to other bridged platforms. * discord: Ignore incoming events for other guilds Ignore all incoming discord events originating from Guild IDs other than the one we have configured. This is necessary because discord bots receive events for *all* discord guilds that they are present in. Fixes #1612
* Switch to discordgo upstream again (#1759)Wim2022-03-121-2/+2
| | | | | * Switch to upstream discordgo again * Fix discord api changes
* Add more debug options for discord (#1712)Wim2022-02-061-1/+7
| | | | | debuglevel=1 dumps every received discord event debuglevel=2 dumps every discord event we are sending to discord (also logs sensitive information)
* Reject cross-channel message references (discord) (#1345)Qais Patankar2020-12-311-3/+3
| | | | | | | Discord message references have been designed in a way for this to support cross-channel or even cross-guild references in the future. This will ensure the ParentID is *not* set when the message refers to a message that was sent in a different channel.
* Add threading support with token (discord) (#1342)Wim2020-12-311-0/+5
| | | | | | | | Webhooks don't support the threading yet, so this is token only. In discord you can reply on each message of a thread, but this is not possible in mattermost (so some changes added there to make sure we always answer on the rootID of the thread). Also needs some more testing with slack. update : It now also uses the token when replying to a thread (even if webhooks are enabled), until webhooks have support for threads.
* Add initial transmitter implementation (discord)Qais Patankar2020-12-131-1/+1
| | | | | | This has been tested with one webhook in one channel. Sends, edits and deletions work fine
* Fix #1049: missing space before embeds (discord) (#1124)Qais Patankar2020-05-071-1/+1
|
* Don't transmit typing events from ourselves (slack/discord) (#1056)Qais Patankar2020-03-221-0/+5
|
* Strip extra info from emotes (discord) (#1052)Qais Patankar2020-03-221-0/+3
|
* Fix duplicate separator on empty description/url (discord). Fixes #1008 (#1035)Wim2020-03-211-1/+31
| | | | Make this work for all possible cases. Add tests
* Fix #1027: warning when handling inbound webhooks (discord) (#1044)Qais Patankar2020-03-181-3/+3
|
* Remove replace directives and use own fork to make go get work again (#1028)Wim2020-03-081-1/+1
| | | | See https://github.com/golang/go/issues/30354 go get doesn't honor the go.mod replace options.
* Fix channel ID problem with multiple gateways (discord). Fixes #953 (#977)Wim2020-01-091-14/+2
|
* move stripCustomoji logic to default Tengo script (#973)c0ncord22020-01-091-1/+0
| | | | | | | | | | | | * move stripCustomoji logic to default Tengo script Removing the image ID from the message (without any possibility of recovering it later) is a loss of valuable data that prevents users from giving support to custom emoji via Tengo scripts. * bugfix - do send colors to other irc bridges "if we're not sending to an irc bridge we strip the IRC colors" Co-authored-by: c0ncord <59654954+c0ncord@users.noreply.github.com>
* Update vendor (#932)Wim2019-10-271-1/+4
| | | | | | * Update vendor * Fix godiscord api change
* Add UserTypingSupport (discord) (#914)Qais Patankar2019-10-041-0/+13
| | | | | | | | * Add Discord to UserTypingSupport * discord: start typing in a channel on EventUserTyping receive * discord: emit EventUserTyping to gateway
* Specify correct GuildID on unknown user query (discord). Fixes #879 (#894)Wim2019-09-151-1/+1
|
* Support bulk deletions (discord)Qais Patankar2019-06-161-0/+21
|
* Allow messages from other bots (discord). Fixes #816Wim2019-05-011-1/+1
|
* Do not relay any bot messages (discord) (#743)Wim2019-02-281-1/+1
|
* Allow sending discriminator with Discord username (#726)Declan Hoare2019-02-221-0/+3
|
* Support join/leaves from discord. Closes #654 (#721)Wim2019-02-171-0/+42
|
* Disable some unparam checks (discord)Wim2018-12-071-3/+3
|
* Split Discord bridge in multiple files (#632)Duco van Amstel2018-12-071-0/+125