Questions tagged [disnake]
53 questions
-1
votes
0 answers
problem with cogs when i write event on_member_join variable role says error
I don't undertand what I need to change to make my code work.
This is my error message:
File "C:\Users\TVIM\Desktop\Cogs\cogs\events.py", line 15
role = disnake.utils.get( member.guild.roles, id = 1144745255883788340 )
TabError: inconsistent use of…
-1
votes
1 answer
Why doesn't the Chatterbot reply with a response?
Why is the result of the request to Chatterbot not output in the response variable?
from chatterbot import ChatBot
from chatterbot.trainers import ChatterBotCorpusTrainer
import disnake as discord
from disnake import…

LukasWRN
- 1
-1
votes
2 answers
Disnake - Error when try get message author name
I have problem with Disnake.
When I try get message author like name, discriminator and other like this - I get this error:
Ignoring exception in command user:
Traceback (most recent call last):
File…

TheVorkMan
- 57
- 4
-1
votes
1 answer
How to delete a Discord message via disnake if it has a reaction
How can I use the disnake library to write code (Discord bot) that deletes a message when a user with a special role (e.g. admin) reacts to the message?

sm1le
- 1
-1
votes
1 answer
Creating selection in select menu discord python
I want after selecting the first option, for me to have a choice between two other options, like a question within a question. Is it possible to do this?
Here is my code:
import discord
from discord.ext import commands
class…

Oskar Voralberg
- 1
- 1
-2
votes
1 answer
discord.py/How to get selected options in slash command?
How can I use the button displayed by a slash command to get the selected option for that slash command?
I'm using a module called disnake and I think the way to get it is the same as discord.py.
class ButtonView(disnake.ui.View):
def…

I am pk
- 1
- 1
-3
votes
1 answer
The code is not executed further after the connection. Disnake
I have such a slash command for the bot:
@commands.slash_command(name='radio', description="Music", guild_ids=[])
async def radio_voice_cmd(self, inter: disnake.CommandInteraction,
voice_channel:…

Angeloffy
- 1
- 1