Select menu option emoji
Hi there, so I have this StringSelectMenuOptionBuilder which the options are made based on the role data stored in a database (this is for a self-roles system essentially).
Line 59 shown in the picture shows
I have made a check previously if the emoji was in the server, then would reflect if the emoji option was to be added in the option builder, but that did not work as i expected.
I might be overthinking this, but is there an easier way I could be checking if this emoji set in the database is valid/existent before setting it on the option builder? Apologies if this is confusing, I have trouble with that sometimes.
Line 59 shown in the picture shows
x.emoji, which is the emoji stored in the database which can consist of either a unicode emoji or a custom emoji. The emoji is set as the menu option emoji, if existent. The problem I'm having is that if the custom emoji is set for a specific category/role based on what the user set in the configuration commands, and the emoji set in the database happens to get deleted from the server, I run into an error where the emoji is invalid because well it doesn't exist anymore. I have made a check previously if the emoji was in the server, then would reflect if the emoji option was to be added in the option builder, but that did not work as i expected.
I might be overthinking this, but is there an easier way I could be checking if this emoji set in the database is valid/existent before setting it on the option builder? Apologies if this is confusing, I have trouble with that sometimes.

