#Help Needed

1 messages · Page 1 of 1 (latest)

keen igloo
#

Hey , I've made a discord but using py , jishaku , async etc , but the bot isn't responding to the messages , slash commands work , yes all the intents are given to the bot in the dev portal , highest role is given , I'm unable to figure our the error .

barren frost
#

After that, you also need to send intents when you open a connection to Discord.

keen igloo
#

yes yes

#

ive dont that

keen igloo
#

is added in the code

barren frost
#

Generally purely setting it to true won't do anything, unless some library that you use does some magic behind this setting.

keen igloo
#

ouh

shy nacelle
#

hello

barren frost
#

Basically for it to receive message_content as example, you do:

intents = discord.Intents.default()
intents.message_content = True

client = discord.Client(intents=intents)
keen igloo
#

ive set that 👍

barren frost
keen igloo
#

it is true

barren frost
#

Alright, thought you set true in different place.

#

Generally best would be to post code here, otherwise it's hard to debug.

keen igloo
#

its a lot of folders

#

def init(self, *args, **kwargs): # Fix typo: *arg -> *args
intents = discord.Intents.all()
intents.presences = True
intents.members = True
super().init(command_prefix=self.get_prefix,
case_insensitive=True,
intents=intents,
status=discord.Status.do_not_disturb,
strip_after_prefix=True,
owner_ids=OWNER_IDS,
allowed_mentions=discord.AllowedMentions(
everyone=False, replied_user=False, roles=False),
sync_commands_debug=True,
sync_commands=True,
shard_count=2)

    self.lavalink: Client = None
#

here you go

barren frost
keen igloo
#

prefix

#

for ex:- .help

#

.ping

#

etc etc

barren frost
#

Functionality of normal commands is separate from slash commands.

keen igloo
#

yea , as i said before , slash commands are working , but the bot isnt responding when using prefix commands , mentioning the bot

#

async def on_message(self, message):
if message.author.bot:
return
ctx = await self.get_context(message, cls=Context)
await self.invoke(ctx)

this is my on message block

barren frost
#

Hm

keen igloo
#

im stuck here

#

im not good in discor.py , as u might have guessed . , still learning

barren frost
#

Hmm, I see. I guess without more code, I personally cannot correctly guess what could be the cause as I don't know how your bot is structured.

keen igloo
#

its on github

tender relic
keen igloo
barren frost
keen igloo
#

k i can do that

barren frost
#

Without touching the function itself

keen igloo
#

okk

undone harness
#

hi I can help u

keen igloo
undone harness
#

hi

keen igloo
#

hi

#

any fix you found ?

autumn remnant
#

i smell help

#

i think we need a code inspector in this server

civic perch
#

hello my name is siddhant i am from india and i want to prepare for gsoc 2026 and currently i know only basic python that also not properly and i want to pursue deep learning what should be my furthur steps