From 90856a67fa2fa8061254006974b8921b4e97bc1a Mon Sep 17 00:00:00 2001 From: rebecca Date: Sat, 12 Sep 2026 18:58:49 +0100 Subject: more oop refactoring --- discord/pylon.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'discord') diff --git a/discord/pylon.lua b/discord/pylon.lua index 0b50b84..4a3e832 100644 --- a/discord/pylon.lua +++ b/discord/pylon.lua @@ -15,7 +15,7 @@ local API_BASE = "https://discord.com/api/v10/" local Discord = class.extend(BasePylon) function Discord.init(self) - self:check_config "token" + self:_check_fields "token" end local function identify_payload(token) @@ -63,7 +63,7 @@ function Discord.recving(self) for packet in self.ws:each() do local event = json.decode(packet) print(event.s, event.op, event.t) - if true or event.op ~= opcodes.dispatch then + if event.op ~= opcodes.dispatch then pprint(event.d) end -- cgit v1.2.3