DInteg/functions/Server/addhook

= (Void) dinteg.addHook(hookDataObj) =

Sends Webhooks base on a hook

Example
dinteg.addHook({   hook = "hookname", -- Hook Name  - REQUIRED    name = "unquie name", -- Unquie Name  - REQUIRED    webhook = "webhook url", -- Webhook URL - uses config.defaultWebhook if not specified    message = "message", -- Message to send to the webhook also can be createEmbed  - REQUIRED

color = Color(255, 255, 255), -- Can be Color, {r = 255, g = 255, b = 255} or hex string "#FFFFFF" user = 1 -- argPos of the user to use for the user field in the webhook. Will replace the user field in the webhook with the user that triggered the hook timeout = 5 -- Time in seconds to wait before accepting another message from hook selfDestruct = false -- If true will remove the hook after it has been triggered once })

If you want more info about how to use the built in formatting look at AddHook Formatting Example