Ask coding questions

← Back to all posts
commands | prefix
MailLite (0)

I can't set a bot prefix. I get these errors [Discord Bot]

DM me MastMailLite#9953 on discord :)

Answered by xfinnbar (21) [earned 5 cycles]
View Answer
Comments
hotnewtop
xfinnbar (21)

Add from discord.ext import commands Remove bot = commands.Bot(...) and client = discord.Client() and add client = commands.Bot(command_prefix = ['.'], intents = intents) and intents = discord.Intents(messages = True, guilds = True, reactions = True, members = False, presences = False)