Category "discord"

When a user mentions the owner the bot should say you're not allowed

I am trying to make it when a user is tagged (eg. MyNameJeff#0001), the bot will automatically respond with you're not allowed to mention them and delete their

How to pass ctx argument to own function?

It isn't exactly my code but similar example: Function body: async def fun(fun_word) ctx.send(fun_word) Then main code: @client.event async def on_message(me

How to resolve the following error in discord.py: "TypeError BotBase.__init__() missing one keyword-only argument: 'intents'"

I am using the following code to run my discord bot: bot=commands.Bot(command_prefix="!") However, when trying to run it in vscode, I get the following error:

How to Scrape Discord members using Python?

I am trying to scrape members of a Discord server. This is code I am using. But I am running into KeyError: 'guilds'. Can anyone please help me with this? impor

"Task exception was never retrieved" error In discord.py

I am a beginner in python and am trying to make a bot in discord.py that has a command that has whoever runs the command explain how to use something. But I get

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