comparison src/delete_server.js.luan @ 15:d0b8e1a8fc69

minor
author Franklin Schmidt <fschmidt@gmail.com>
date Wed, 01 Nov 2023 00:12:08 -0600
parents 80105b716a62
children
comparison
equal deleted inserted replaced
14:80105b716a62 15:d0b8e1a8fc69
20 local url = "https://discord.com/api/users/@me/guilds/"..server.discord_id 20 local url = "https://discord.com/api/users/@me/guilds/"..server.discord_id
21 local config = Config.get() 21 local config = Config.get()
22 local options = { 22 local options = {
23 method = "DELETE" 23 method = "DELETE"
24 headers = { 24 headers = {
25 ["User-Agent"] = "fuck you" -- for retarded Cloudflare 25 ["User-Agent"] = "Disearch" -- for retarded Cloudflare
26 Authorization = "Bot "..config.discord.bot_token 26 Authorization = "Bot "..config.discord.bot_token
27 } 27 }
28 } 28 }
29 try 29 try
30 local result = uri(url,options).read_text() 30 local result = uri(url,options).read_text()