Invalid get index error
Closed this issue · 1 comments
HashirShazad commented
This is my code which i use:
For some reason github is showing this outside even though I write it inside
var button = MessageButton.new()
button.set_style(MessageButton.STYLES.DEFAULT)
button.set_custom_id("my_customs_button")
button.set_label("Click me")
# We need to make an action row
var row = MessageActionRow.new().add_component(button)
bot.send(msg, {
"content": "This is a msg with buttons",
"components": [row]
})`
Error
Invalid get index 'id' (on base: 'Dictionary').
HashirShazad commented
Oh found out that i gotta use an emoji for it to work :D
button.set_emoji({"id": "556051807504433152"})