1 messages · Page 1 of 1 (latest)
.
class Mod(commands.Cog): def __init__(self, bot): self.bot = bot
my code is in a cog
i want to
make my bot can access
the "bot" object
like bot.get_channel(channel_id)
bot.get_channel(channel_id)
Problem with cogs
then use self.bot
also make a setup function if you didnt
bot.add_cog(Mod(bot))```
can i do it without self?
Nope idts
Unless you somehow get the bot object but why bother just use self.bot it’s good enough