I have a problem: I can’t send message in a @tasks.loop() function. When I try to get the channel object with self.client.get_channel(channlid), it return me a Nonetype variable. My code : my error: Can you help me ? Answer Problem You’re calling client.get_channel before the client is ready. So, the client cannot find the channel you’re looking for, and channel
Tag: discord
How to make this case insensitive
I’m not sure how I can use .toLowerCase() to make my discord command case insensitive this should be simple but I’m really new to this Answer In your handler where you check for the message content in the message event Have this done Eg: if(message.content.toLowerCase() === cmdName) return;
Why am I getting: TypeError: channel.updateOverwrite is not a function
I’m following a tutorial on discord.js, making a ticket bot. I have double-checked and I am still getting the same error: TypeError: channel.updateOverwrite is not a function I’ve looked over all the StackOverflow questions that I could find, but none has worked for me. I have also explored a little deeper outside of SO, still no help. Here is my
Discord.py ctx commands not recognised
im fairly new to coding in general and recently started trying to code my own bot. Almost all of the tutorials i have seen use the ctx command however, whenever i use it i get this error: Here is part of my code that uses the ctx command. The aim is to get it to delete the last 3 messages
TypeError: client.voice.createBroadcast is not a function
This is my code: Output comes out with an error: I am using Node:17.0.0 and Discord.js:13.1.0 I am not sure why I am getting this error. Answer Discord.js v13 no longer supports voice. The new way to join a VC and play audio is with the @discordjs/voice library. Unfortunately, discord-tts might be deprecated. You can record your own user client
how can i move users with reaction
im trying to create bot that move users when they react in message create channel and move the user to the channel that was created , err = Cannot read property ‘setChannel’ of undefined if(reaction….
How do I embed a response? Discord Bot Python
This is the code I have and I was wondering how do I make it so that the bot embeds the requirements. @client.command() async def partner(ctx): await ctx.send(“””__Requirements:__ 1)…
My Discord bot does not respond to my messages
I am making a bot using Python. I am very new to coding with Python and I don’t understand a lot of things, I am just following a tutorial(https://youtu.be/j_sD9udZnCk) but I am stuck with my bot not …
How to make a bot join a channel and respond in chat discord.py
I just started learning to code very recently in order to make a discord bot in python. I have used both pieces of code separately and they have worked, but when trying to use them together only the …
Make Discord BOT get random image from a ftp server (Filezilla)
I’m just gonna say it right away that I have no experience whatsoever in python. I’m trying to make a bot for a private Discord server that posts a random image (.jpg) from a ftp server (root …