nextcord icon indicating copy to clipboard operation
nextcord copied to clipboard

throw an error if custom-id is not a string

Open gamercrewdev opened this issue 1 year ago • 2 comments

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.

gamercrewdev avatar May 28 '24 18:05 gamercrewdev

Just follow the typehints and you will avoid such cases.

xXenvy avatar Jun 01 '24 17:06 xXenvy

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.

lordcod avatar Jun 09 '24 12:06 lordcod