Category "discord"

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

Hyperlink Markdown dynamically in discord

I'm trying to make an embed message where the title of the video is the link. To achieve that I'm using square brackets and parentheses around the objects, but

How to make a Discord bot tell the current date and time on command?

I want to have my Discord bot tell me the current date and time on a simple command, so if I say "whats the time?" it will tell me. Currently my only solution i

Discord.client is not a constructor - discord.js

i made a discord bot and tried a beginner code i found on youtube, this is my code and my errors index.js // Require the necessary discord.js classes const Disc