Category "discord"

pycord RuntimeError while trying to start ipc Discord Bot

I'm following this tutorial to create a discord bot with a dashboard but when I run my bot.py file I'm getting an error. What am I doing wrong? bot.py: import d

Discord bot: The base SlashCommand cannot be instantiated

On my computer it works fine, but when I try to host it on Heroku it gives this error /app/node_modules/slash-create/lib/command.js:21 throw new Error('The base

Discord.js: Is there any possible way of disabling a menu after selecting one of it's options?

I've very recently had a look at buttons for my discord bots, and in doing so I also discovered the menus that you can create. I want to know how, if it's possi

How to make joining a voice channel by numeric code?

I have a question, please tell me how to implement slash command as in the screenshot. (I mean /join number). I will be extremely grateful. Thanks in advance fo

Discord.Js Bot to create invites for users

I need to figure out how to create an invite link for users so that they can track invites. Currently I have this, however this created the invite for the Bot.

Get user's ids to a list from guild discord.py

Is it possible to get all of the members's user ids from a guild (server)? Edit: I can't use guild, because I need to get the ids when the bot gets online (on_r

Discord.Py ffmpeg was not found

@commands.command() async def play(self, ctx, url): ctx.voice_client.stop() FFMPEG_OPTIONS = {'before_options': 'reconnect 1 -reconnect_str

Node.js node:internal/modules/cjs/loader:936 error while trying to use discord.js

I'm trying to make a discord bot with the command prefix "*" but when I try to get the bot online/run it, it gives me this error: node:internal/modules/cjs/loa

How to ping message author and user in Discord.js embed

i recently started with Discord.js and i am currently making a hug command. the command itself is working fine, but the problem i am facing is that i want the b

Discord bot is still offline

To launch my discord bot, I followed the way using Heroku but... In Heroku, main.py is on, but my discord bot still offline. I tried to change main.py with the

Discord Python Bot, auto-unban after given time, how do I save the time until a user gets unbanned even if the bot goes offline?

I'm making a discord bot in python, and want to add a temporary ban command. The only problem is that if the bot goes offline (power outage, altering code, ect.

message.content.startsWith is not a function error

here is my code const prefix = '!'; module.exports = { name: 'messageCreate', once: false, execute(client, message) { if (message.author.bo

Query discord api from webiste

Is there a way to query the discord API without have a bot on a server. I would like to retrieve my friends and my profile images and put it on a website I crea

Is there a way to allow your bot to follow announcement channels for other servers through a command?

My bot uses discord.py, is there a way to code it to allow it to automatically follow an announcement channel for other servers to your server through a command

How to Direct Message a specific person with a Discord Bot

I have tried to DM myself using the code: User me = new UserById(myId); me.openPrivateChannel().flatMap(channel -> channel.sendMessage("hello")).queue(); Th

How to make my Discord.js bot that leaves servers below a certain member count

I am making a discord.js bot and trying to get it verified! I want to make it so when you add it to a server and it has below 35 members it leaves it. This is s

How to use Sharp in discord.js to create a welcome image

I recently switched from Canvas to Sharp to create the welcome image that pops up in the welcome channel every time a user joins since I heard that Sharp is mor

discord.py MemberNotFound exception when passing a real member

When I pass *grant @user add in Discord I get the following exception: Ignoring exception in command grant: Traceback (most recent call last): File "/Users/te

Hiding plain text URL in JS (Webhook URL)

I am working on an electron JS based app, and I have a a discord webhook that logs the happenings. When the ASAR is unpacked (which anyone with knowledge can do

Missing Access for Slash Commands

Heres the error message: PS C:\Users\User\Documents\Discord Bot> node . ready C:\Users\User\Documents\Discord Bot\node_modules\discord.js\src\rest\RequestHan