summaryrefslogtreecommitdiff
path: root/discord/pylon.lua
diff options
context:
space:
mode:
authorrebecca <ubq323@ubq323.website>2026-09-24 16:42:28 +0100
committerrebecca <ubq323@ubq323.website>2026-09-24 18:20:25 +0100
commit3f54007ab621d2e6b652523259b1cb2d3d158e22 (patch)
tree101d01f242a14119a31f838be6a97a7d36847f5c /discord/pylon.lua
parentc6bf8876a0949214ce3fc151b2dbb957e40523a3 (diff)
create Thing class for general tuples of (pylon,descriptor)
Diffstat (limited to 'discord/pylon.lua')
-rw-r--r--discord/pylon.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/discord/pylon.lua b/discord/pylon.lua
index 64fe921..b996ee7 100644
--- a/discord/pylon.lua
+++ b/discord/pylon.lua
@@ -5,7 +5,7 @@ local json = require 'dkjson'
local class = require 'r.class'
local BasePylon = require 'pylon'
-local Channel = require 'channel'
+local Thing = require 'thing'
local consts = require 'discord.consts'
local opcodes = consts.opcodes
@@ -133,9 +133,9 @@ function Discord.handle_dispatch(self, event)
and d.author.id ~= self.bot_id
then
self.wilson:deliver({
- source_channel = Channel(self, d.channel_id),
+ channel = Thing(self, d.channel_id, 'channel name here'),
+ author = Thing(self, d.author.id, d.author.username),
body = d.content,
- sender = d.author.username,
})
end
end