It's a little bit confusing. You say the code you've provided in your post is intended to execute when a button is clicked, correct? This means that you've already replied to a slash command interaction which sent a response which contained that button, right? It's likely then, that you want to use editReply instead, to edit the original message that was sent, and what you then do, is provide ...