20,939
questions
-4
votes
0
answers
16
views
Python Base Discord [closed]
could you help me with connecting to the Heroku postgres database?
Python to the discord bot?
I tried the guides and it didn't work
Help me please
When the database works on LAN but does NOT work on ...
-4
votes
0
answers
30
views
Discord ChatGPT Bot
I've made bot for my discord server and tried to make it use ChatGPT. After sending message on chat it only types error and in terminal it says error no.429
const { Client, GatewayIntentBits } = ...
-1
votes
0
answers
24
views
How to fix a not working discordbot? java-lang
I've recently created a discord bot with the help of chatgpt in Java language. The bot is running and is online on the discord server but is not doing what i want. The purpose is to greet someone when ...
-2
votes
0
answers
45
views
Unsure why this is happening? Random Error after 20-30 minutes of running [closed]
I am not sure why this is happening, but this script works for around 20-30 minutes, before I get an error
Unhandled exception in internal background task 'FileCheck'
I am not sure why the script ...
1
vote
1
answer
13
views
My discord bot does not register the commands
I have created a Discord bot on a server and it has registered all the commands (/) perfectly with this code that reads a folder named “comandos” and gets all the JS extension files:
//Load commands
...
0
votes
0
answers
11
views
The problem with pydub.AudioSegment.from_file (ffmpeg)
I'm trying to make a normal voice recording discord. When I try to convert an Audio Data object, an error occurs. I've already tried everything I can, I can't solve the problem.
Here is the code, the ...
0
votes
0
answers
31
views
Discord Bot with Discord.py 2.0 - Unable to show image from assets parameter in discord.Streaming()
Currently using Discord 2.4.0 and Python 3.12.1
In my dev portal -> Rich Presence -> Rich Presence Assets I have uploaded a 1024x1024 jpg image and named it "asset_id". I made sure to ...
0
votes
0
answers
20
views
discord.js MessageTyping errer
I was making a discord bot with discord.js, but when I use MessageTyping Intent, I get an error.
Errer:
/home/container/node_modules/discord.js/src/util/BitField.js:174
throw new DiscordjsRangeError(...
0
votes
0
answers
22
views
Multiple Bots Joining Voice Channel Issue When Using Slash Commands
I'm working on a project where I have multiple Discord bots running simultaneously using Discord.js v14. Each bot is authenticated with a different token and has its own set of slash commands, ...
0
votes
0
answers
14
views
Discord automation
How can I programmatically automate the process of detecting and accepting a call in Discord, as well as resetting it without using hotkeys (because, for example, in games, discord hotkeys do not work)...
-5
votes
0
answers
28
views
Backporting Discord to Windows 7 [closed]
Discord is based on Electron, so I tried to backport it with Supermiums Electron like I did it with the YouTube Music App... But It looks like it is a bit more difficult than backporting the YouTube ...
0
votes
0
answers
29
views
got unwanted noise when im trying to put my voice live on my bot discord
I'm trying to put my voice live on my bot discord I succeeded but very inconclusive and I'm sure it only works with my microphone (what I do not want is for it to work with any microphone).
by “very ...
0
votes
0
answers
10
views
Next.js redirect user from api handlers
I was implementing Discord authentication on my site with Next.js, but I'm encountering an issue with the redirect from the API handler:
Discord sends the data to /api/auth/callback/discord, and I ...
0
votes
1
answer
33
views
Discord Bot can't edit its message (discord.js V14)
I'm trying to make a Discord TicTacToe bot that works just by having the bot authorized to your account. I'm using the module discord-gamecord to do this. The bot works fine if it's added to the ...
0
votes
0
answers
21
views
Reddit auth error 401 when running autopost command in discord.js bot
I’m running into some trouble with my Discord bot that’s supposed to fetch images from Reddit. I keep hitting this error:
Error obtaining Reddit access token: { message: 'Unauthorized', error: 401 } ...
-1
votes
0
answers
32
views
User installed application's slash commands in DMs/GroupDMs (discord.js v14)
I'm wondering how to use /commands in DMs and Group DMs using user installed applications on discord
So I recently came across this bot called Virtual Fisher
And you are able to access his slash ...
-3
votes
0
answers
35
views
Xcode linker can’t find Discord’s rich presence SDK dylib file
I’m working on integrating Discord’s rich presence SDK into an Xcode project for macOS, but I’m having trouble with the linker. It can’t seem to find the discord_game_sdk.dylib file, even though I ...
0
votes
1
answer
18
views
Open Graph Embeds dont work over traefik proxy
Ive been trying to fully migrate my personal website to use traefik, instead of just forwarding the ports directly so i can have subdomains,for some reason discord and tumblr; tumblr error ss
just ...
0
votes
0
answers
13
views
Reaction Collector not collecting reactions in DMs
I am using Discordjs v14.15.3. The following script is supposed to send an invitation via DM to all members who have opted into our coffee chats to confirm that they are interested in participating ...
0
votes
1
answer
65
views
(PyCharm) Discord bot (written in python) if "Hello" in message.content.lowe(): Not responding
import discord, os
TOKEN = 'I CANT POST IT IN THE FORM'
intents = discord.Intents.default()
intents.message_content = True
intents.members = True
intents.messages = True
client = discord.Client(...
0
votes
0
answers
26
views
Discord.Net: Gateway Blocked and Task Canceled When Connecting to Voice Channel in UserVoiceStateUpdated Event
I'm developing a Discord bot using C# and the Discord.Net library. The bot joins a voice channel when a user joins the channel and leaves upon receiving a specific command. However, I'm encountering ...
0
votes
1
answer
50
views
Very simple slash command failing with "This interaction failed"
I'm trying to make a simple Discord bot with pycord that includes slash commands, after porting away from text-based commands.
I've made the below simple-as-possible code, yet every time I run the ...
0
votes
0
answers
28
views
CollectorMessage from Discord.js v.14 with SlashCommands
I got a problen trying to create a command about a "pokequiz" where you have to guess the pokemon's name using SlashCommand and Collectors. When the user types the correct answer, the bot ...
0
votes
1
answer
82
views
I want to make my Discord music bot run faster by starting to play the video while it's still loading. What can I do? (I’m new to coding)
I have a simple code like this, but the 'play' function takes around 10 seconds to execute. Would starting the music playback while it's loading make this code run faster?
import discord
from discord....
-1
votes
1
answer
31
views
Discord JS v14 Bot Script Not Working (Specifically, GuildCreate and GuildMemberAdd not triggering)
Okay. I've tried everything I can think of here, and I can't seem to find anything that is a similar problem to mine. The closest thing might be this post.
I'm trying to build a Discord bot that can ...
0
votes
0
answers
8
views
Discord JS Bot will not work, constantly returns that an attachment is not an image
I'm trying to make a discord bot that takes a user's attachment in a certain channel, upload the attachment to Imgur using the imgur js package, and then return the newly uploaded link back to the ...
-1
votes
0
answers
37
views
discord.py-self - I can't get the interaction object from this succesful interaction when clicking a button
A bot sends a message containing a button, when the button is clicked it opens a modal.
I need to get the modal id from the interaction object using interaction.modal.id
I am trying to get the ...
0
votes
1
answer
48
views
How should I go about importing one module from another module, where the first module itself is importing a different module?
I have 3 relevant files here, in this directory set up:
src/operator_precedence_high_roller_bot/
parsing/
command_parser.py
high_roller.py
tests/test_high_roller/
...
0
votes
0
answers
45
views
TypeError: options.getTextImputValue is not a function
I am trying to create a simple Discord Bot command, where I can create an embed. The problem seems to be in one line, where I want to get description of the embed from a modal. My problem lies ...
0
votes
1
answer
42
views
How can I display an error when I enter an invalid parameter in the app command autocomplete in discord.py?
I want to display an error message like the one in this image:
I am using discord.py to create a Discord bot with command autocomplete functionality. I want to display an error message when a user ...
1
vote
0
answers
25
views
An error occurs when sending a message containing Japanese to Discord from Raspberry Pi Pico W (MicroPython)
I made micropython code to send Discord DM with Raspberry Pi Pico W.
Not use library(ex. Discord.py), directly connect Discord REST API.
import urequests, ujson
#Omit Wi-Fi connection
DataObj = {
&...
0
votes
1
answer
49
views
how to get lines from message in discord.py
i try to create bot that can read crypto deals
i want to get each line but i get only letter
for example:
i send this command in discord :
symbol:btc
price:65,000
stop loss: xyz
and i want to get each ...
0
votes
0
answers
16
views
This interaction failed error on custom discord bot
import discord
from discord.ext import commands
intents = discord.Intents.default()
intents.message_content = True
bot = commands.Bot(command_prefix="$", intents=intents)
@bot.event
async ...
0
votes
0
answers
54
views
I Can't Run Application Command with Discord.js v14
I'm just trying to learn how to bot with Discord.js v14. Even though the Slash Commands I saved in my bot are saving and working properly, when I try this for the Application Command, it saves the ...
0
votes
1
answer
34
views
cannot access message id beacuse the interaction.response.send_message() returns none with discord.py
@bot.tree.command(name='create_dungeon')
async def create_dungeon(interaction: discord.Interaction):
new_doc_id = create_document(str(interaction.user))
if new_doc_id == False:
await ...
0
votes
0
answers
28
views
Node.js Puppeter | I can't pass Discord verification with 2captcha
Normally, I can pass the captcha when I try it on other sites. But there is no continue button on Discord, and that's why Discord does not see that this has been resolved.
As you can see below, I ...
0
votes
1
answer
32
views
How can I send messages to the unbanned user and what did I dо wrong?
I have the unban function in my disnake bot. After I unban, the bot should send a personal message to the user, but I got an error there.
Code:
@bot.slash_command(name="unban",
...
-1
votes
0
answers
83
views
How to create a queue system with a discord.py bot
I'm trying to create a bot with discord.py.
Also, I'm a beginner, so I'll be interested in what I can improve and any errors there are.
I've been stuck on trying to create this queue system for songs, ...
0
votes
1
answer
51
views
I want to fetch a data from another python file everytime i execute the other one
I know that whenever i use from my_file_contains_data.py import data_i_want
i can access the data i want and i can use it for 'if' statements.
but in 'my_file_contains_data.py' file, the 'data_i_want' ...
0
votes
0
answers
23
views
User Discord Avatar Not Displaying in Django Template
Django Python OAuth Discord getting an avatar from the Discord API, please help me how to do this.
On the index.html page, the user's avatar is not displaying in the <div class="auth"> ...
0
votes
2
answers
55
views
Discord.py Slash commands in cogs not syncing
I am making a discord.py bot that utilizes slash commands aswell as text based commands. I am using cogs to order them properly but the slash commands do not want to sync so I cannot use them.
Folder ...
0
votes
1
answer
23
views
How can I use python to scrape ping messages?
I have a discord bot that I've been working on. It will sometimes encounter errors, and I will be busy doing something somewhere else, and I don't wish for potential clients to have long downtimes. I'...
0
votes
1
answer
49
views
How to sync slash command to Group Chat or User DM?
How to make my Discord Bot sync to Group Chat or User DM? There is a Discord Bot able to use the commands without inviting to Discord Server, and it works in Discord Group Chat and User DM's. Is there ...
0
votes
0
answers
67
views
Discord bot / Rust Console
Iv made a discord bot and iv been trying to connect it to my gportal game server..
There's no public api, so iv tried to doing it with puppeteer and selenium, (selenium worked best)
With that method I ...
0
votes
0
answers
32
views
I’m using curl to read from discord, but it’s just showing a white screen [duplicate]
So I made the website and the code but it can’t seem to work
<?php
if (isset($_GET['src'])) {
$url = $_GET['src'];
if (filter_var($url, FILTER_VALIDATE_URL) && strpos($url, '...
-1
votes
1
answer
48
views
PyCord Slashcommands : AttributeError: type object 'Interaction' has no attribute 'respond'
Today I changed from PyCord 2.4.1 to 2.6.0 and my entire Bot broke.
I get the Error message:
Extension 'cogs.stats' raised an error: AttributeError: type object 'Interaction' has no attribute 'respond'...
-1
votes
0
answers
30
views
Removing a button after clicking it Interactions.py
I wanna remove buttons in message after clicking it.
i use message.edit(components = None) but it doest works, in Disnake i use message.edit(view = None) and it works, i no need for disabled buttons, ...
-1
votes
0
answers
46
views
How to stream computer mic to a discord bot in Python
I am trying to make a Python script that sends the computer mic to Discord. However, it's sending a buggy mess of audio instead of my actual microphone input.
My code is as follows:
bot = commands.Bot(...
0
votes
1
answer
47
views
I am coding a Discord bot with Python. The command is working, but after it executes, instead of sending the message to the server, it gives an error
I created a simple Discord bot. The 'clear' command works, but instead of saying '{len(deleted)} messages have been deleted.', it shows a warning saying 'The application did not respond.'Additionally, ...
-1
votes
1
answer
32
views
Discord bot / role
I am writing a bot for my discord server (via disnake), sometimes I have to restart it through the developer panel (discord.dev).
When I added him to the server, I changed his native role (which is ...