kurzgesagt-in-a-nutshell / birdbot

A multipurpose bot for the kurzgesagt discord server
GNU General Public License v3.0
20 stars 4 forks source link

Error handling for TransformerError #203

Closed Utkarsh-Patel-13 closed 5 months ago

Utkarsh-Patel-13 commented 5 months ago

Error handling for transformer error

Description

Discordpy performs conversion when running an interaction. For example ID: 01234567890 will be converted to some_member. If the resource doesn't exist or type conversion fails, disord raises app_commands.TransformerError. This change address the bot level error handling for TransformerError so as to send embed to command author.

Checklist

Additional Context

Review Notes

Please review the error content message. Modify message content if necessary.