I was trying to follow the subclassing example @ https://guide.pycord.dev/popular-topics/subclassing-bots/ but it throws the exception i wrote in the title
import discord
class MyBot(discord.Bot): # subclass discord.Bot
async def on_ready(self): # override the on_ready event
print('Logged in as')
print(self.user.name)
print(self.user.id)
print('------')
@slash_command() # create a slash command
async def ping(self, ctx):
await ctx.respond('Pong!')
bot = MyBot()
bot.run('token')
Is there a workaround for this?
Subclassing is a popular way of creating Discord Bots. Explore how you can create a Discord bot by subclassing.