nextcord
nextcord copied to clipboard
throw an error if custom-id is not a string
Summary
Add an error if the custom ID of a UI object is not a string.
What is the feature request for?
The core library
The Problem
The custom-id must be a string, otherwise the callback will not be executed and no error is thrown.
The Ideal Solution
Add an error message if the custom-id is not of type string.
Just follow the typehints and you will avoid such cases.
Hi, in my fork I made such a system if the view is not found, the on_view_not_found event will be called where the interaction is passed.