Commit Graph

24 Commits (05dddc42ff9bc3904a6a3121dce592cab7185c3a)

Author SHA1 Message Date
Sam W 5604d140e3
Ignore events from other guilds, add nosendjoinpart support (discord) (#1846)
* 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
2 years ago
Wim e4c0ca0f48
Switch to discordgo upstream again (#1759)
* Switch to upstream discordgo again

* Fix discord api changes
3 years ago
Wim c211152e23
Add more debug options for discord (#1712)
debuglevel=1 dumps every received discord event
debuglevel=2 dumps every discord event we are sending to discord (also
logs sensitive information)
3 years ago
Qais Patankar 1a4717b366
Reject cross-channel message references (discord) (#1345)
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.
4 years ago
Wim 19d47784bd
Add threading support with token (discord) (#1342)
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.
4 years ago
Qais Patankar 52e2f926f4 Add initial transmitter implementation (discord)
This has been tested with one webhook in one channel.

Sends, edits and deletions work fine
4 years ago
Qais Patankar 52a071e34d
Fix #1049: missing space before embeds (discord) (#1124) 4 years ago
Qais Patankar 98033b1ba7
Don't transmit typing events from ourselves (slack/discord) (#1056) 5 years ago
Qais Patankar af0acf0dae
Strip extra info from emotes (discord) (#1052) 5 years ago
Wim 281016a501
Fix duplicate separator on empty description/url (discord). Fixes #1008 (#1035)
Make this work for all possible cases.
Add tests
5 years ago
Qais Patankar 9e3bd7398c
Fix #1027: warning when handling inbound webhooks (discord) (#1044) 5 years ago
Wim 9785edd263
Remove replace directives and use own fork to make go get work again (#1028)
See https://github.com/golang/go/issues/30354
go get doesn't honor the go.mod replace options.
5 years ago
Wim 4c44515f9d
Fix channel ID problem with multiple gateways (discord). Fixes #953 (#977) 5 years ago
c0ncord2 810c150781 move stripCustomoji logic to default Tengo script (#973)
*  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>
5 years ago
Wim 0bc159341d
Update vendor (#932)
* Update vendor

* Fix godiscord api change
5 years ago
Qais Patankar ba6759010b Add UserTypingSupport (discord) (#914)
* Add Discord to UserTypingSupport

* discord: start typing in a channel on EventUserTyping receive

* discord: emit EventUserTyping to gateway
5 years ago
Wim 0abf4d5d5d
Specify correct GuildID on unknown user query (discord). Fixes #879 (#894) 5 years ago
Qais Patankar 76c7b69e4e Support bulk deletions (discord) 5 years ago
Wim 1829dc3d9f Allow messages from other bots (discord). Fixes #816 5 years ago
Wim af00c34aac
Do not relay any bot messages (discord) (#743) 6 years ago
Declan Hoare a7dd033c3b Allow sending discriminator with Discord username (#726) 6 years ago
Wim 0bcb0b882f
Support join/leaves from discord. Closes #654 (#721) 6 years ago
Wim f72d5de2d7 Disable some unparam checks (discord) 6 years ago
Duco van Amstel 0365c0786a Split Discord bridge in multiple files (#632) 6 years ago