#Problem with cogs

1 messages · Page 1 of 1 (latest)

unreal wing
#

.

#
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)

#

Problem with cogs

vernal gull
#

then use self.bot

#

also make a setup function if you didnt

    bot.add_cog(Mod(bot))```
unreal wing
vernal gull
#

Nope idts

#

Unless you somehow get the bot object but why bother just use self.bot it’s good enough