Category "discord"

else cant read the variable "msg"

so basically I have some code that will look at a Reddit page and get the title, link, current upvotes, and how long ago it was posted. And if the links aren't

Discord js 13 button edit permission channel

When a person sends my command, a channel is created that only they have access to. Also, when creating a channel, a message is sent with the "accept" button, w

How do I check if a message DOES NOT start with the prefix?

Title mostly says it all, how do I check if a message doesn't start with the prefix so I can send a message alerting the user they didn't use the prefix?

Python Discord Bot Commands Decorator within classes

Hey I was coding a discord bot, however I can't figure out how to write the commands decorator, I think that's because I am putting all the code in a class, wit

TypeError: Cannot read properties of undefined (reading 'add')

I've been stuck on this for ages and can't figure out why the error pops up. async function verify(i) { try { var g = await client.guilds.cache.get(

Discord.py commands not running

** ** UPDATE: SOLVED Hi, So im making a bot with the code below in python and i cant figure out why the commands arent working in discord. the only one that wor

How to make a chatbot for discord using python

I need advise and/or resources to make a chatbot for discord in python, i have some knowledge of python and the discord api but I know nothing about chat bots o

Why does my Discord bot keep repeating when it runs this command?

This is the code used, there is nothing (I think) that's causing it to repeat, matter of fact I added something so it stops repeating but it didn't do anything

Discord.js How to find all the servers a different discord user is in

I want to make a website where people can change what the bot does on their server. I'm currently using Autocode to make it (using discord.js). I also don't kno

Discord.py bot not sending messages in a discord server but sends messages in DM's

I have a discord.py bot that when the command is sent through DM, it works. When the command is ran through a server, nothing happens. There is no errors or tra

How can I add a cover image to a Discord Scheduled Event?

I have created an event through the Discord JS Library, and would like to add a user option to add a cover image. The code below is working fine, but the image

Discord py, get rate limit timer

I have a bot written in python. Help me deal with HTTP requests. There is a task: rename the channel on command. But discord has a limit on renaming the channel

ReferenceError: Routes is not defined Discord

client.once("ready", () =>{ console.log("Bot is online"); const CLIENT_ID = client.user.id; const rest = new REST({ version: "9"

I'm Trying to Build a Discord Bot that Sends a Message once Every Scheduled Interval

import discord import time import random import schedule import asyncio async def run_scheduled_tasks(): while True: schedule.run_pending()

How to add role hierarchy in this command

so basically i want to add role hierarchy in this command i am using discord.py 2.0 i checked docs but i am not able to figure out how to exactly do it, pls hel

Discord API. Bot don't see message from other users

I'm trying to make a selfbot for Discord and cant see message content from other users. async def on_message(message): print(f'USER - {message.author} texte

Await component doesn't send OK

I would like to do a await message and list for my setWelcome but it does not send me Ok when I select in the Select menu and I do not know if it is good for th

I'm having an issue with reading JSON from a file

I was interested in making a discord bot an im following a tutorial (https://www.youtube.com/watch?v=-WlLazqQO3I) I've barely learnt python so i only understand

Discord.js get current message embed

I've been trying to make my bot's embed color update dynamically (using random color, editing HSV value). However, using msg.embeds[0] seems to give me the prev

Is it possible to get the list of all members from a discord guild using non-bot token?

Since discord developers added intents system I'm unable to get all members from guild using token of my own account. Is it possible now?