diff options
Diffstat (limited to 'discord/pylon.lua')
| -rw-r--r-- | discord/pylon.lua | 4 |
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, }) |
