zfbx / zdiscord

A Discord bot that runs in FiveM for the purpose of whitelisting, moderation and utilties using discord.js
Other
210 stars 81 forks source link

webhook #83

Open swan2b144 opened 2 years ago

swan2b144 commented 2 years ago

Before submitting your question have you checked the check the FAQ or checked for similar issues already?: yes

Question: for the web hooks what do i put as the name you have an example "bank": "https://discord.com/api/webhooks/000000000/sEcRRet-ToK3n_5tUfF_tH8t_YUo-S40u1d-n07-sHar3",

what other titles are available? or do i just make a bunch like bank vehicle garage etc? i know i create the webhook and put them in config but how do i use them or how are they used or how many do i need?

Information: FiveM artifact #: 5848 Using QBCore?: yes When did you last update QBCore if you are using it?: latest update

zfbx commented 2 years ago

name is whatever you want it to be as it'll be the name to call the hook

swan2b144 commented 2 years ago

so i just make a few random ones and they work? or if i want an vehicle spawned hook how do i implement it. maybe what im asking is how is the hook triggered how do i call it? do i put them in my own scripts?

zfbx commented 2 years ago

There's examples in the docs https://zfbx.github.io/zdiscord/exports#log

swan2b144 commented 2 years ago

thank you i did not see this. so its global export for commds i can log in the bot you made as well as lua exports i can use in my own lua scripts!