From: Daniel Karbach Date: Sat, 30 Apr 2022 14:34:56 +0000 (+0200) Subject: fix discord channel callbacks X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=a5b6f807937bc78ff991d11cff5bf9455dee9eea;hp=12f64085fd212a9744db01790cefad53c970e8d9;p=alttp.git fix discord channel callbacks --- diff --git a/app/Console/Commands/DiscordBotCommand.php b/app/Console/Commands/DiscordBotCommand.php index 4368bb5..a86966b 100644 --- a/app/Console/Commands/DiscordBotCommand.php +++ b/app/Console/Commands/DiscordBotCommand.php @@ -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()); }