Questions tagged [discord]
For use with the Discord API, which provides an interface that allows you to program bots and other applications for Discord messaging services. If asking about a specific API wrapper, please tag the library as well.
discord
20,925
questions
0
votes
0
answers
12
views
I'm making a program to prevent discord token theft
I'm making a program to prevent discord token theft. And I have a question, how do all these viruses get the discord token from the discord application? What files do they download it from and how do ...
-1
votes
0
answers
13
views
Discord gacha bot "error" (gacha not showing the card)
This is the gacha function i used:
if (command === '!gacha') {
const now = Date.now();
if (cooldowns.has(userId) && now - cooldowns.get(userId) < 5 * 60 * 1000) {
await ...
-6
votes
0
answers
46
views
Error when I try use Gemini API for my discord bot [closed]
When I try use the command !askai {question}, My code send a error from console. Its looking like this:
WARNING: All log messages before absl::InitializeLog() is called are written to STDERR
I0000 00:...
0
votes
1
answer
23
views
Using Discord Webhooks on forum posts, pings don't seem to function. Are they broken, intentially disabled, or something specific I need to do?
I have a google forms script that pulls all the information submitted and posts a new forum thread. In the content, it pings a user, and a role, and then posts embedded information pulled from the ...
0
votes
1
answer
35
views
My Discord bot doesn't send message when I type a command
I'm currently developing a Discord bot, but when I call the bot.process_command member function with several arguments, it does not respond and does not give an error message.
My code is as follows:
...
-2
votes
0
answers
24
views
How to make a discord bot join my voice channel using interaction (slash commands) (Python)
@client.tree.command(name = "join", description = "Makes the bot join your voice channel.")
async def join(interaction: discord.VoiceChannel):
try:
if interaction....
0
votes
0
answers
14
views
How to add a user to a ticket using UserSelectMenuBuilder
I managed to create a UserSelectMenuBuilder but I don't know how to make it so that when an interaction occurs (so a user is selected) I can make the channel visible to him and make him write
Can ...
2
votes
1
answer
18
views
commands.check analog for buttons?
I have function that checks whether guild is in the whitelist that I use with commands.check for every my command:
async def is_active(ctx):
return ctx.guild.id in get_whitelist()
Is there some ...
0
votes
0
answers
21
views
I am making a discord bot but it won't start up when I run the 'startup.js' file
Can someone help me start up my bot? its startup code looks something like this
const { Client, Events, GatewayIntentBits } = require('discord.js');
const { token } = require('./config.json');
const ...
1
vote
1
answer
36
views
I can't understand why user data isn't being entered into the database
I'm creating a discord bot that will enter user data from the server into the database, such as id, username, nickname and roles. For this I use discord.py and Supabase. It doesn't show any errors in ...
0
votes
0
answers
19
views
The gif embedded into my link is not showing on discord
I'm trying to make it then if you middle click a discord gif it would direct you to my website but discord is not getting the embed in my link and only shows the link plain
The code on the website:
&...
-1
votes
0
answers
27
views
Does anyone know of any discord bot hosting that can use FFmpeg? [closed]
I am developing a discord bot that streams radio, and that is why it uses FFmpeg. The bot works well because it uses the FFmpeg installed on my PC, but as is obvious on a host it will not be able to ...
-1
votes
0
answers
14
views
Webhook Sent 400 {"embeds": ["0"]}
getting a webhook error for this JSON when trying to post to discord:
{
"content": "<@&1007047660735303700> <@&1142624156022747246>",
"embeds":...
1
vote
0
answers
58
views
How to fetch Discord messages via a user token
I'm looking to develop a Rust application that "listens" to messages posted on Discord channels and writes them to me in STDOUT. I don't want to use a bot because it doesn't (and won't) have ...
0
votes
1
answer
28
views
Error: TypeError: user.send is not a function
I am trying a discord bot with a modal, I want to send a private message to the user, but an error appears like this
Error: TypeError: user.send is not a function
this is my code
const invoke = ...