20,940
questions
0
votes
0
answers
6
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
19
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
21
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
0
answers
17
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
1
answer
23
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
63
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
24
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
6
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
29
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
45
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
41
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
40
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
24
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
45
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
15
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
50
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
30
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 ...
-1
votes
0
answers
35
views
Why is my class uncallable throughout the code and gives a undefined error? [closed]
class IDClipboard(nextcord.ui.View):
def __init__(self):
super().__init__(timeout=100)
self.value = None
pass
myview = IDClipboard()
@...
0
votes
0
answers
24
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
29
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
72
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
50
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
44
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
0
answers
19
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
37
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
49
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
46
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
29
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 ...
-1
votes
0
answers
29
views
Why I cannot use client.applicaton.owner in DJS
So in this embed code i just wrote, even when i tried everything, just cannot use anything other than client.user.tag which pings my bot but i want it to ping me.
here's the code:
const Discord = ...
0
votes
0
answers
42
views
When two discord users interact with two different buttons, why does the later view created replace the earlier view?
I believe this is the minimal reproducible code.
from discord.ui import View,Button
from discord.ext import commands
import discord
import asyncio
client = commands.Bot(command_prefix = '.', intents=...
0
votes
0
answers
10
views
Trying to understand the high level handshaking between a Dicord Bot and Python Script
I am not trying get specific code, yet, for my Python script. I am trying to understand the high level handshaking that takes place between Discord Bot and the Python script I am running on my ...
0
votes
1
answer
26
views
How to fix the "reactions.values(...).filter is not a function" error?
I'm trying to make a giveaway discord bot, but when I try to choose a random winner, it breaks and gives me this error:
reactions = reactions.values().filter(user => user.id != "...
0
votes
1
answer
43
views
Discord js Using guild. but this error happens Cannot read properties of undefined (reading 'members')
So I was writing tje code as a test to implement some functionality.
when a user sends a user ID with a command, the bot have to check if the id is on the server or not, but this error occurs Cannot ...
0
votes
0
answers
19
views
vite cannot connect to dev server via discord activity
Vite cannot connect to the development server backend because discord's CSP says everything other than the page has to use .proxy/.
here are the 2 rules in there:
https://<id>.discordsays.com/....
0
votes
0
answers
101
views
Discord Bot modals suddenly stop working using discord.js
I have a discord bot that presents the user with a number of modals reachable through buttons in an embedded message. This has been working for weeks without issue.
Suddenly all of the modals throw a ...
0
votes
1
answer
29
views
invalid_scope when trying to request dm_channels.messages.write from Discord OAuth
I'm trying to update the scopes requested by my Discord OAuth flow, I'm trying to add dm_channels.messages.write, this is the URL the Discord developer portal generates for me (some info redacted):
...
0
votes
0
answers
36
views
Discord API Error when running a command twice
The code i am currently using works, It is writing data to cell H1, and getting data from cell H2 in my google sheet. However when the command is ran twice in less than 1-2 minutes the bot crashes. ...
0
votes
1
answer
55
views
db.Collection Is Not a Constructor
I'm having this issue where I'm trying to create a leveling system in Discord using discord.js and MongoDB. Every time I try to upload my data to the database, I keep getting the error message
level ...
-1
votes
0
answers
56
views
My Discord Server Is not showing up on google when user search its name
Despite having a large number of members and meeting all requirements for visibility, our server does not appear in search results when users search for Our Server Name on search engines, Instead ...
-1
votes
1
answer
41
views
I'm getting this discord.py error: TypeError: unsupported type annotation <class 'discord.interactions.Interaction'>
I'm currently making a Roblox API related bot and I keep running into the discord.py error in the title, I've tried changing and doing many different things but everything I do is wrong and I'm not ...
0
votes
2
answers
43
views
Is there a way to check if a specific user id exists within the server? without using cache || discord js
Is there a way to check if a specific user id exists within the server? without using cache
I couldn't find a working code, whether or not the user had never chatted
commands.add('test3', (arg) =>{
...
1
vote
0
answers
25
views
not preview image in embed : its starboard custom command use on yagpdb bot
I am using YAGPDB discord bot (custom command section) and I need to display a preview of images or videos in an embed when a message is starred. Below is the script I am currently using:
embed ...
0
votes
0
answers
33
views
Discord js gives me "DiscordAPIError: Cannot send an empty message" when I put "async, await" in the script
When a user sends a fur file with "$fur2mp3",
the bot has to download it to the local repository,
convert it through an external batch script,
and send the converted file to a channel.
but ...
0
votes
1
answer
67
views
discord.py not registering hybrid commands with user install inside of cogs
discord.py doesn't seem to register user install with a hybrid command inside of a cog. Only inside of a guild using a app command and prefixed command.
main.py
import asyncio
import os
import ...
2
votes
2
answers
40
views
how can I check if before.timed_out_until is before present or empty?
this is a stripped down version of my file
the code doesn't work IF:
a member got timed out before and that timeout ended naturally.
the bot was running for the first time. (somewhat fixed it by ...