Discord slash commands and duplicate accounts #1000
Unanswered
jorys-paulin
asked this question in
Q&A
Replies: 1 comment 4 replies
-
I'm thinking of two potential solutions for you. One apply if you control the only OAuth enabled, and the other that wouldn't request anything else than your Discord BOT.
This is the best solutions I can think so far, if you want more precision about one, don't hesitate I'll be happy to help you 😊 |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, everyone!
Discord recently launched slash commands, and I wanted to integrate those with Fider. As part of the Moonlight Discord server, I would like to allow users from the Discord server to interact with our Fider site, to promote it and make it easier to give feedback.
I looked at the Discord documentation and Fider's documentation, and I think it can be done: a bot can create a Fider account for each Discord account, and act as a middle-man for interactions with Fider.
However, this means users with existing accounts would have two different Fider accounts (aka duplicate accounts), and I was wondering if it was possible to avoid that.
I would like to somehow "link" a user's Discord account to their existing Fider account or create one for them. They would then be able to log in to the Fider site, using the existing OAuth log-in, and see all their posts and votes like normal.
The problem is, Fider doesn't have a way to say "that account is linked to this external one", there is a
reference
option when creating an account, but it seems like it's never exposed or used anywhere else.When executing a command, Discord sends the user's id and username, but (thankfully) not the email address, so Fider can't use it for de-duplication either.
Do you have ideas on how it could be done? I haven't looked at the source code yet, but I don't think it'll help.
Should I just give up and be content with duplicate accounts?
Beta Was this translation helpful? Give feedback.
All reactions