[Python] How to make a message saying the bot cant dm?

Discussão em 'Python' iniciado por Stack, Setembro 11, 2024.

  1. Stack

    Stack Membro Participativo

    Hello I would like to make a error message to have the bot send when the user has their DMs off. What would be the error message name?

    I have the code below for wrong permissions; I just need the error message name to change it.

    @ban.error
    async def ban(ctx, error):
    if isinstance(error, commands.MissingPermissions):
    await ctx.send("You dont have premissions to run this command")

    Continue reading...

Compartilhe esta Página