choose = random.choice([one, two, three])
embed = discord.Embed()
embed.set_image(url="attachment://"+random.choice(["1.png","2.png","3.png"]))
bot.slash_command(name = "aww", description = "sends a cute picture.... Which one tho??? (most likely a dog picture)")
async def aww(ctx, guild: discord.guild):
await guild.channel.send(file = choose, embed=embed)
#my slash command is not showing up yet there is no problem in the code.....
1 messages · Page 1 of 1 (latest)
where is the @?

lol
i got this error:
issubclass() arg 1 must be a class
File "C:\Users\Nico Spina\Downloads\32oz (discord bot)\bot.py", line 172, in <module> (Current frame)
@bot.slash_command(name = "aww", description = "sends a cute picture.... Which one tho??? (most likely a dog picture)")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: issubclass() arg 1 must be a class```
it is a class i think
of the program or the files for the pictures
The file name
which one
the current one
Change the name of the file pls
its the only file
ok ok
i did and the error:
Exception has occurred: TypeError (note: full exception trace is shown but execution is paused at: <module>)
issubclass() arg 1 must be a class
File "C:\Users\Nico Spina\Downloads\32oz (discord bot)\main.py", line 172, in <module> (Current frame)
@bot.slash_command(name = "aww", description = "sends a cute picture.... Which one tho??? (most likely a dog picture)")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: issubclass() arg 1 must be a class
can you show the pip list pls?
try it with uninstalling and reinstalling py-cord
other commands work
that is weird then
Can you show the command which one is not working?
i cant becuase it gives the error when i pless play
actually it happened after i updated the python extension and some other python isort thing
it doesnt even connect
idk why it says subclass need to be class when it is
i fixed it
its because discord.guild not discord.Guild