📜  discord parentid (1)

📅  最后修改于: 2023-12-03 15:30:27.669000             🧑  作者: Mango

Discord Parent ID

Introduction

Discord Parent ID is a unique identifier given to a Discord user's parent account. This ID allows Discord to ensure that underage users are using the platform with parental consent and supervision. The Parent ID is also used to link multiple accounts together under one parent account for easy management.

Usage

To obtain your Discord Parent ID, you can follow these steps:

  1. Log in to your Discord account on the web.
  2. Navigate to the User Settings page.
  3. Click on the "Family" tab.
  4. If you have not added a parent account, click on the "Get Started" button to add one.
  5. Once your parent account is added, you will be able to see your Parent ID under the "Your Account" section.

You can also obtain the Parent ID programmatically using the Discord API. You will need to authenticate with a user token that has access to the connections scope. Once authenticated, you can make a GET request to https://discordapp.com/api/v6/users/@me/connections to retrieve a list of all connections associated with the user. The Parent ID will be included in the verified object of the parent account connection.

Here is an example of how to make the API request using Python:

import requests
import json

# Set up headers with user token
headers = {
    'Authorization': 'Bearer <USER TOKEN>'
}

# Make GET request to retrieve connections
response = requests.get('https://discordapp.com/api/v6/users/@me/connections', headers=headers)

# Parse response and retrieve Parent ID
connections = json.loads(response.text)
for connection in connections:
    if connection['type'] == 'parent':
        parent_id = connection['verified']['parent_id']
        print(f"Parent ID: {parent_id}")
Conclusion

The Discord Parent ID is an important identifier that ensures a safe and supervised environment for minors on the platform. Whether you are a parent managing multiple accounts or a programmer looking to incorporate the Parent ID into your app, understanding and utilizing this ID is paramount.