#How to delete option in embed if nothing is enter

2 messages · Page 1 of 1 (latest)

snow dune

Instead of setting the values of your embed all in one function chain, you can only set those values if the value was provided in an option

if (title !== null) embed.setTitle(title)