About 709,000 results
Open links in new tab
  1. Adding an attachment to Discord via the public api using the …

    Jun 16, 2024 · I'm trying to send a discord message that has an attachment with the public api, but I don't know how to do it. I need to send the message from my discord account and not from a bot Or a webhook. This is my code so far:

  2. interact with discord using requests in python - Stack Overflow

    Dec 6, 2021 · discord python api Bot() and Client()-1. Discord bot in python-1. Bot discord with python. 0. Discord ...

  3. How do i make a working slash command in discord.py

    Feb 17, 2022 · # This is new in the discord.py 2.0 update # imports import discord import discord.ext # setting up the bot intents = discord.Intents.all() # if you don't want all intents you can do discord.Intents.default() client = discord.Client(intents=intents) tree = discord.app_commands.CommandTree(client) # sync the slash command to your server @client.event async def on_ready(): await tree.sync(guild ...

  4. data scraping on discord using python - Stack Overflow

    Jun 1, 2021 · Discord API is no exception as the documentation tells us. Here's how you do it: First, you will need to query the data multiple times. For that, you can use a while loop. Make sure to add an if the condition that will prevent the loop from running indefinitely - I added a check whether there are any messages left.

  5. Asynchronous REST API inside Discord.py - Stack Overflow

    Jan 31, 2019 · I am looking for a way to integrate a REST API inside my Discord.py, using the rewrite branch. I want to use aiohttp to handle requests but I am unsure of which approach I should take. The objective is to make for example a GET request to the API that would return a list of guilds the bot is in.

  6. python - Expose discord bot to API (Flask, FASTAPI) - Stack Overflow

    Dec 26, 2020 · Python: Discord API. 0. discord python api Bot() and Client() 15. Running Flask & a Discord bot in the ...

  7. python 3.x - Discord receive audio - Stack Overflow

    Jul 15, 2018 · A recent update to the discord.py fork pycord added the possibility to record audio, which you could then use for speech recognition. To start recording the audio, you simply need to call VoiceClient.start_recording with a Sink , a function that will be called after you stopped recording, and optional arguments for that function.

  8. python 3.x - Logging in as user using discord.py - Stack Overflow

    Working example for Python 3.4 (replace keywords as necessary for Python 3.6) import discord import ...

  9. How to delete a lot of messages through Discord's API using …

    Jan 2, 2020 · Not super versed in the API but a basic way to delete all of a certain user's messages could just be if role in ctx.message.author.roles: for msg in ctx.message.author.messages: await msg.delete()

  10. How to add images with Discord API and Python Requests

    Mar 19, 2023 · When uploading files, Discord API expects that the Content-Type is set to multipart/form-data. If you want to let Discord automatically discover the Content-Type, you can omit this header in your request. I have tested the code below.