------------------------------------------------------------------------------------ --------------------------------- night_discordapi --------------------------------- ------------------------------------------------------------------------------------ -------------------------------------- Config -------------------------------------- ------------------------------------------------------------------------------------ -- Please read the documentation and/or watch the installation video tutorial (available on the documentation page) before asking us for support. -- Documentation Page: https://docs.nights-software.com/resources/discordAPI/ (<- INSTALLATION GUIDE HERE) -- Support Discord: https://discord.nights-software.com/ Config = { -- No own bot? Leave it as default and invite ours ยป https://discord.com/oauth2/authorize?client_id=956690799385522237&permissions=1024&scope=bot -- If you do have a bot: define your BOT token below, inbetween the quotation marks: "bot_token", Discord_Bot_Token = "", Discord_Guild_Names = { -- Add your Discord Servers/Guilds by their ID here, when fetching something with this resource, we try and get as much information as possible from all your guilds ["989438923925229598"] = "Nights Software", -- Your primary server/guild ID (legacy scripts will get information regarding this guild) -- ["1001055923912653544"] = "My Community Discord", -- Add another (secondary) guild ID and Name to your liking. Make sure to invite the bot into this guild. }, Discord_Role_Names = { -- Add Discord roles by their role ID here, name them how you want but make sure to use the same name in other configs of our resources. -- Example: ["989863231482916874"] = "Administrator", ["963138401656242206"] = "Your_Police_Role", ["744819251814334485"] = "Your_Ambulance_Role", ["744819251788906505"] = "Your_Fire_Role", ["1002578457823297536"] = "Allowlisted", ["468677647228363421"] = "Banned", }, Discord_API_Cooldown = 2, -- Number of seconds between each API request. At least 2 is recommended. Discord_API_Log_Level = 3, -- 0 = Disabled, 1 = Errors only, 2 = Errors and warnings, 3 = All messages. Discord_API_Log_SameMessageCooldown = 5 -- Number of seconds between API request errors with the same message. }