});
$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());
}