Skip to content

Commit

Permalink
fix: commands: WaifuNSFW: couldn't use command in DM.
Browse files Browse the repository at this point in the history
  • Loading branch information
bariscodefxy authored Jun 1, 2024
1 parent 828a880 commit 4537bec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/reactions/WaifuNSFW.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function configure(): void
public function handle($msg, $args): void
{
global $language;
if (!$msg->channel->nsfw) {
if (!$msg->channel->nsfw && $msg->guild) {
$msg->reply($language->getTranslator()->trans('commands.waifunsfw.no_nsfw_channel'));
return;
}
Expand Down

0 comments on commit 4537bec

Please sign in to comment.