I’m trying to make a giveaway command for my bot but I get an error every time I try to run the command ‘int’ object has no attribute ‘time’ My code for the giveaway command Answer You must rename your time : int parameter, so it does not interfere with the time module. Given the context, I would suggest something
Tag: discord
Discord bot with pre-defined tags
I have a problem. I have a list of programming languages, for example The user should be assigned a maximum of three programming languages as roles. Is there a possibility to use a tag input like for web pages in Discord? For example, the user just writes Ja and the user gets back Java and JavaScript and can select them.
Discord Bot Keeps Thinking After Responding Already
I’m using py-cord and my Discord bot is thinking even after it has already sent a response. I’m deferring since the .response function takes so long that the bot will exit out from the command if I don’t. Is there any fix to it? Answer ctx.respond will respond to it: it will be viewable by anyone. Idk if i helped
Traceback handling with on_application_command_error() vs. @command.error
I want to write an error handler for my commands that would send the traceback in my dms using Pycord version 2.0.0. I first tried setting up per-command handlers using @command.error: This works perfectly fine (Message sent to DMs goes as follows): An exception has occurred! (User MrQez#0333 used /exception-test with args None) However, as the amount of commands in
Check if the last 2 messages were sent by the same person in discord.py
I’d like to know if it’s possible to check if the last 2 messages in a channel (either the specific channel or the whole server, doesn’t really matter for my purpose) were sent by the same person in discord.py, e.g. something like this: Thanks. Answer You can get the channel of the message, and then get the history: Or, alternatively,
Add reactions to embeds py-cord
Im making a discord bot and i decided to change from prefixed commands to slash command using pycord and my poll command it won’t add the reaction it will just send the embed without the reactions Here is my code: Before i decided to change to slash commands it worked perfectly fine I don’t know what is the problem and
discord.py – BanIterator object is not iterable
I’m trying to make an unban command but I have no way of getting the banned users list. This is the code: Error code: I tried even copying the code from this man (https://youtu.be/KS1_3km5vC0) but it doesn’t work. This is the code: Error code: This is all the bot code: Answer as in Documentation , you need to do it
discord.py self-bot replies only to itself
I’m new at programming. I want to write a bot for my Discord channel to send users “hi” messages who send “hello”. But there is a problem, only I (the self bot) can receive the “hi!” message. When I write “hello” from another account, the bot doesn’t answer it. Note: I am using a self-bot, not a normal bot. Answer
How can i make that when a poll reaches por example 5 votes send the message to another channel
I’m trying to make a poll, but all the ones I see have a limit of time created with asyncio, but I want to make that when the a poll reaches 5 reaction of the emoji ✅ instead of having a limit of time, send the message to another channel, I already have the poll itself done How can I
I am trying to make a discord chatbot but I am facing a problem
I have been trying to make a discord chatbot I finished the code “technically” it should work Here’s my code : This is the error I’m getting: Any help would be super appreciated, Thank you. Answer I’ve not familiar with Dicord’s API, but I’m pretty sure it should be activity instead of game