I’ve seen on other posts that the bot events are easier than client ones. But I don’t get if the intents declaration for client and bot is the same or not. Everytime i try to change the imports and the intents it doesn’t work.
import os
from typing import Final
import discord
from discord import Client, Intents, Message
from discord.ext import commands
from responses import actions
# Load the token
TOKEN: Final[str] = os.environ['DISCORD_TOKEN']
# Bot setup
intents: Intents = Intents.default()
intents.message_content = True # NOQA
client: Client = Client(intents=intents)
bot = commands.Bot(command_prefix='%', intents=intents)`
New contributor
Firmo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.