Open mugman174 opened 3 years ago
FYI this is already possible @cainy-a https://pkg.go.dev/github.com/cainy-a/discordgo#SetEndpoints
Just needs a config entry or CLI parameter
Oh ok awesome!
Might want to make this a per session thing though, as accounts may want to connect to different backends or you may even support multiple parallel sessions that use the same interface. Taking #18 and this issue at the same time into account.
Right now this is package wide, so all session instances would use the same endpoints. Would require some changes throughout discordgo though. Probably can cover most of it with a simple regex though.
that seems sensible yes
ig thats just an extra thing to store with the accounts array
Thx
Why'd you close this? It hasn't been implemented...
Why'd you close this? It hasn't been implemented...
Idk I’m on my phone rn so probably misclicked
ok
i guess close with comment and comment are fairly close together on small screens
What do you want
I want to change the API endpoint for Gord's requests. Normally, Gord accesses discord's api at
discord.com/api
, but I want to be able to change that for use with Fosscord.Why
It will allow compatibility with projects like litecord (not lightcord) and Fosscord.
Implementation hints
config file entry maybe