This repository has been archived on 2024-06-08. You can view files and clone it, but cannot push or open issues or pull requests.
RoHook/Example.lua

22 lines
946 B
Lua
Raw Permalink Normal View History

2020-02-28 20:06:45 +00:00
-- Script type: Script
-- Writen by github.com/Limesey, @Norbunny on Roblox.
2020-02-28 21:18:52 +00:00
2020-02-28 23:47:23 +00:00
local roHook = require(script.Parent.RoHook)
2020-02-28 21:18:52 +00:00
2020-02-28 23:47:23 +00:00
local message = roHook.newMessage()
2020-02-28 21:18:52 +00:00
e = message.addEmbed("Title", "Description")
e.addField("Name", "Value")
e.setAuthor("Norbunny","https://www.roblox.com/headshot-thumbnail/image?userId=76860346&width=420&height=420&format=png", "https://www.roblox.com/headshot-thumbnail/image?userId=76860346&width=420&height=420&format=png")
e.setThumbnail("https://www.roblox.com/headshot-thumbnail/image?userId=76860346&width=420&height=420&format=png")
e.setImage("https://www.roblox.com/headshot-thumbnail/image?userId=76860346&width=420&height=420&format=png")
e.setTimestamp()
e.setFooter("Developed by Norbunny", "https://www.roblox.com/headshot-thumbnail/image?userId=76860346&width=420&height=420&format=png")
e.setColor(Color3.new(0, 255, 0))
2020-02-28 23:47:23 +00:00
local success, err = roHook:send(message)
2020-02-28 21:18:52 +00:00
if(not success) then
warn(err)
end