Discord: Add users via accounts tab
Doesn't require a PIN like Telegram, as we can access a list of guild users with the GuildMembers intent set. This has to be enabled under Bot > Priviliged Gateway intents on the developer portal.
This commit is contained in:
@@ -261,3 +261,18 @@ type SetContactMethodsDTO struct {
|
||||
Discord bool `json:"discord"`
|
||||
Telegram bool `json:"telegram"`
|
||||
}
|
||||
|
||||
type DiscordUserDTO struct {
|
||||
Name string `json:"name"`
|
||||
AvatarURL string `json:"avatar_url"`
|
||||
ID string `json:"id"`
|
||||
}
|
||||
|
||||
type DiscordUsersDTO struct {
|
||||
Users []DiscordUserDTO `json:"users"`
|
||||
}
|
||||
|
||||
type DiscordConnectUserDTO struct {
|
||||
JellyfinID string `json:"jf_id"`
|
||||
DiscordID string `json:"discord_id"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user