Skip to main content

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.

0 votes
0 answers
26 views

How to shorten the code with discord py cogs?

I have a code like this, and I have to repeat the check function every time in every game. How can i do it better? class Casino(commands.Cog): def __init__(self, bot): self.bot = bot ...
Александр's user avatar
0 votes
1 answer
25 views

how can I make the activity part of the bot's profile invisible when the bot is active?

client will look active, but I want that gray part of the place to look like the complete avatar of my bot like that i tried many ways to do that like ws and client presence options but it couldn't ...
hôd's user avatar
  • 1
0 votes
1 answer
28 views

How do I scroll to the bottom of the page using tampermonkey?

I'm trying to create a simple tampermonkey script to scroll to the very bottom of the page in discord after switching the channel, The script is supposed to wait for 5 seconds then scroll to the ...
QuantumPulse87's user avatar
-2 votes
1 answer
33 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 ...
Filip G's user avatar
-1 votes
0 answers
17 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 ...
alt 2's user avatar
  • 1
-7 votes
0 answers
76 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:...
MoonVatality HUB's user avatar
0 votes
0 answers
31 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 ...
Onahail's user avatar
  • 135
0 votes
1 answer
42 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: ...
Canom's user avatar
  • 1
0 votes
0 answers
16 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 ...
Marco Rossetto's user avatar
2 votes
1 answer
20 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 ...
Raffaello Banhammer's user avatar
0 votes
0 answers
22 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 ...
Alex Blum's user avatar
1 vote
1 answer
37 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 ...
zzhuravleff's user avatar
0 votes
0 answers
23 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: &...
w01n 187395's user avatar
-1 votes
0 answers
29 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 ...
Nchxz's user avatar
  • 1
-1 votes
1 answer
20 views

Webhook Sent 400 {"embeds": ["0"]}

getting a webhook error for this JSON when trying to post to discord: { "content": "<@&1007047660735303700> <@&1142624156022747246>", "embeds":...
AJ Distaffen's user avatar

15 30 50 per page
1
2 3 4 5
1396