reply

Let's you reply to a specific message


Example

bot.new_eventlistener({
    Event = "MESSAGE_CREATE",
    Callback = function(data)
        local is_bot = data.author.bot 
        if is_bot then return end -- to stop it from repyling to itself

        local message_id = data.id 
        local channel_id = data.channel_id
        
        reply(channel_id, message_id, {
            Content = "Hello world",
            Embeds = {},
            Components = {}
        })
    end
})

Last updated