discord py get user by id
user = bot.get_user(user_id)
discord py get user by id
user = bot.get_user(user_id)
discord api python putting ids in a list
@client.event
async def on_ready():
guilds = client.guilds
data = {}
for guild in guilds:
data[guild.id] = []
for channel in guild.channels:
data[guild.id].append(channel.id)
with open("./data/guilds.json", "w") as file:
json.dump(data, file, indent=4)
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us