#๐Ÿ”’ Discord API

29 messages ยท Page 1 of 1 (latest)

twilit impBOT
#

@fallow kiln

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

ocean lava
#

use the discord.py module no need for the api directly

#

!paste

twilit impBOT
#
Pasting large amounts of code

If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/

After pasting your code, save it by clicking the Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.

ocean lava
#

id add a thread for the bot if the bot needs commands or such

visual spire
#
    r = requests.put("https://discord.com/api/v10/guilds/1297524492406489198/members/1293555915319939134", headers={"Authorization" : f"Bot {BOT_TOKEN}", "Content-Type" : "application/json"}, json={"access_token":access_token})

this needs to be Bearer {access_token} afaik

#

bots cant join users

ocean lava
#

and theres cliend.get_guild().ect

#

manage user intent or something like that?

ocean lava
#

intents are a different thing

#

privilaged user intent

#

also prob not user

#

idk what u are trying to access but from the initial message its not user

#

tho from that first message it sounds like dc i giving u a call so idk

#

idk bout the raw api but what even is that ur trying to access?

#

how exacly is that different to adding the bot to a server? also that is prob user if any but not if it is what i think

#

ah yes heard about it but still cant belive thats a thing

#

it should use manage user perm

ocean lava
#

prob the second

#

says this one?

#

bc this sounds like u are good just not good enougth

ocean lava
ocean lava
#

here

#

id guess its like ; for most langs

#

id say gg but this is not a game
u can use !close or !solved to close the theread

twilit impBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.