Tutorials_for_BDFD

Edit Button en #3

Dec 3rd, 2022
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. Here you can find the code for normal buttons [https://pastebin.com/mySm7FHe]
  2.  
  3. to edit a button we do it like this:
  4.  
  5. $editButton[buttonID;label;style;disabled;emoji;message id]
  6. this could also look like this
  7.  
  8. $addButton[no;info;Get more information;primary;no;ℹ️]
  9.  
  10. Then just add the code below to $oninteraction
  11.  
  12. $editButton[info;used;yes;ℹ️]
  13.  
  14. $c[the 2nd is always what should be on the button]
  15. $c[The "yes" prevents the button from being used in this case]
Advertisement
Add Comment
Please, Sign In to add comment