discord Questions
16
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/loader:936
node:internal/modul...
Vengeful asked 7/8, 2021 at 13:50
2
Solved
So I'm trying to get my discord bot to work but a lot of tutorials/posts said to use this thing called guild id and i dont really like just blatantly copying code.
Thanks in advance for helping
Norseman asked 26/5, 2020 at 12:4
6
I am new to programming. I am trying to have my discord bot open up command prompt to confirm it can run, but I am getting this error:
File "C:\Users\---\AppData\Local\Programs\Python\Python38-3...
Tonsil asked 12/6, 2020 at 8:15
9
Solved
I have a very powerful bot in discord (discord.py, PYTHON) and it can play music in voice channels. It gets the music from youtube (youtube_dl). It worked perfectly before but now it doesn't want t...
Studdingsail asked 18/2, 2023 at 19:19
4
Solved
when i make a embed and run the bot, the problem here appears cos i used a let EmbedHelp = Discord.RichEmbed this problems appears in the Terminal, please type the problem and what i need to fix :
...
Phoney asked 23/4, 2019 at 16:34
3
Solved
I have quite a large bot for Discord written up. It has over 1000 lines of code. When I researched how to do it on Youtube and here, nothing seems to be working. I was wondering if someone could ex...
Uncalledfor asked 28/11, 2018 at 21:12
4
Solved
node:v16.11.0
"discord.js": "^13.2.0"
I am setting up an example Discord.js bot.
In this guide, I am to the point of adding this line:
client.commands = new Collection();
Typesc...
Redhanded asked 8/10, 2021 at 18:54
3
I have created some commands which can only be used by specific users. I do not want those commands to show in the drop-down list of the slash commands for everyone.
How to hide those commands?
I a...
Famine asked 13/8, 2022 at 5:33
8
Solved
Ok, so I searched for a while, but I couldn't find any information on how to delete all messages in a discord channel. And by all messages I mean every single message ever written in that channel. ...
Northwester asked 12/1, 2018 at 14:53
3
I'm working on a discord bot and trying to solve this. I want to know how could I use await in non async function or if I can await a function in the lambda line the last line in the code.
I have t...
Disinterest asked 5/3, 2021 at 11:51
4
Here is my code that is trying to access the user's avatar:
Client.on("guildMemberAdd", newMember => {
console.log("Welcomed member avatar: " + newMember.user.avatar);
console.log("Welcomed m...
Nonmaterial asked 6/2, 2019 at 15:5
2
I have written this small PoC for discord webhooks and i am getting error that Can not send empty string. I tried to google but couldn't find a documentation or an answer
here is my code
import r...
Sweepstakes asked 29/9, 2018 at 4:30
3
Solved
I was requiring some data from a .json file but I am getting this error:
Error: ENOENT: no such file or directory, open '../Jsons/eshop.json'
at Object.openSync (node:fs:585:3)
at Object.readFile...
Bugger asked 7/4, 2022 at 6:57
6
I am trying to make a slash command with discord.py I have tried a lot of stuff it doesn't seem to be working. Help would be appreciated.
Bagging asked 17/2, 2022 at 21:14
2
Solved
Im new to Typescript and writing a Discord bot using Typescript. I want to add a variable "commands" to the Client object. For example in Javascript, you using this:
Javascript
const { Cl...
Geodynamics asked 12/7, 2020 at 10:54
2
How do I use repl.it for my Python Discord Bot, and keep it running 24/7.
I used to use keep_alive but it stops working for some reason.
Does anyone have any suggestions?
I keep getting this err...
Goulette asked 16/2, 2019 at 11:30
5
How can I make my bot use my custom emoji in any discord server?
@bot.command(pass_context=True)
async def ping(ctx):
msg = "Pong :CustomEmoji: {0.author.mention}".format(ctx.message)
a...
Fountain asked 23/8, 2018 at 9:43
3
Solved
I'm trying to make a discord bot that can play mp3 files in a voice channel.. but it doesn't seem to work as intended
connection = joinVoiceChannel({
channelId: voice.channelId,
guildId: intera...
Hepplewhite asked 25/9, 2021 at 15:36
4
Solved
import discord
import asyncio
client = discord.Client()
@client.event
async def on_ready():
print("I'm ready.")
async def send(message):
await client.send_message(client.get_channel(&...
Abelabelard asked 14/4, 2018 at 20:9
9
Solved
I'm using the discord.py library to build a discord bot. I'm trying to get a User object from an id or tag, however, I am using a user account instead of a bot account, so I can't use get_user_info...
Purkey asked 3/2, 2019 at 4:7
3
I'm developing a Discord bot in Python 3.6 using the discord.py library and I've had issues trying to send a message to a specific channel from the threads I create.
Basically, I have some threads...
Polyester asked 28/2, 2019 at 15:14
1
Solved
#type: ignore
import os
from keep_alive import keep_alive
from discord.ext import commands
import discord
import asyncio
import datetime
import re
DC_TOK = os.environ['DC_TOK']
bot = commands.Bot...
Rafaelarafaelia asked 19/1, 2023 at 11:53
4
Solved
I am trying to make a bot that welcomes people to the server that it's in and all of the code works except for the on_member_join event because it utilizes the new intents. I googled on how t...
Afflict asked 14/11, 2020 at 4:45
2
Solved
What I'm trying to achieve is simple:
send a message like links: [link1](https://example.com/1), [link1](https://example.com/2) via a bot
get it displayed as "links: link1, link1"
In a ...
Dinin asked 27/12, 2022 at 15:24
1
Solved
I'm trying to make A Discord bot but all Messages that the Bot receives are empty for some reason.
I guess it has something to do with the permissions in Discord (cause the slash commands are also ...
Openhearth asked 28/12, 2022 at 13:32
© 2022 - 2025 — McMap. All rights reserved.