summaryrefslogtreecommitdiff
path: root/discord/pylon.lua
diff options
context:
space:
mode:
authorrebecca <ubq323@ubq323.website>2026-09-13 16:37:17 +0100
committerrebecca <ubq323@ubq323.website>2026-09-13 16:37:17 +0100
commitee4865d8e0c2ba3f29a449b04c5ccb04320c514d (patch)
tree8fa3ea7e8f09e3affef29e5cce3b197d6ea4cbfa /discord/pylon.lua
parent8e813cf9a21c78fbcd4053bc886b8edaea8dcf59 (diff)
use regular _req for executing webhook
Diffstat (limited to 'discord/pylon.lua')
-rw-r--r--discord/pylon.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/discord/pylon.lua b/discord/pylon.lua
index fa2638d..1eb0a5a 100644
--- a/discord/pylon.lua
+++ b/discord/pylon.lua
@@ -8,7 +8,6 @@ local BasePylon = require 'pylon'
local Channel = require 'channel'
local consts = require 'discord.consts'
local opcodes = consts.opcodes
-local exec_webhook = require'discord.the'
local API_BASE = "https://discord.com/api/v10/"
@@ -127,7 +126,8 @@ end
function Discord.sending(self)
for dest_channel, message in self.inbox:iter() do
self.log:proto('>',dest_channel,message.sender,message.body)
- exec_webhook(self.channel_to_webhook[dest_channel.descriptor].url, {
+ local wh = self.channel_to_webhook[dest_channel.descriptor]
+ self._req('webhooks/'..wh.id..'/'..wh.token, {
username = message.sender,
content = message.body,
})