get category discord.py 1

get category discord.py

#in discord.py rewrite
Category = bot.get_channel(CategoryID) #int

Here is what the above code is Doing:
1. It’s getting the category ID from the config.py file.
2. It’s getting the category object from the category ID.
3. It’s getting the channel ID from the config.py file.
4. It’s getting the channel object from the channel ID.

Similar Posts