]> git.localhorst.tv Git - alttp.git/commitdiff
fix discord channel callbacks
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Sat, 30 Apr 2022 14:34:56 +0000 (16:34 +0200)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Sat, 30 Apr 2022 14:34:56 +0000 (16:34 +0200)
app/Console/Commands/DiscordBotCommand.php

index 4368bb5b1d4b06d2bc815c74ff35d470cf708d95..a86966b3f4953570f83f016fc9a1f36cd8f1c480 100644 (file)
@@ -80,21 +80,21 @@ class DiscordBotCommand extends Command
                });
                $discord->on(Event::CHANNEL_CREATE, function (Channel $channel, Discord $discord) {
                        try {
-                               DiscordGuild::onUpstreamCreate($channel);
+                               DiscordChannel::onUpstreamCreate($channel);
                        } catch (\Exception $e) {
                                $this->error('channel create: '.$e->getMessage());
                        }
                });
                $discord->on(Event::CHANNEL_UPDATE, function (Channel $channel, Discord $discord, ?Channel $old) {
                        try {
-                               DiscordGuild::onUpstreamUpdate($channel);
+                               DiscordChannel::onUpstreamUpdate($channel);
                        } catch (\Exception $e) {
                                $this->error('channel update: '.$e->getMessage());
                        }
                });
                $discord->on(Event::CHANNEL_DELETE, function ($channel, Discord $discord) {
                        try {
-                               DiscordGuild::onUpstreamDelete($channel);
+                               DiscordChannel::onUpstreamDelete($channel);
                        } catch (\Exception $e) {
                                $this->error('channel delete: '.$e->getMessage());
                        }