discord: fix /posts command inside DMs

Fix a bug where the /posts command failed when used in a DM channel,
because we were trying to fetch a `nsfw` key that didn't exist.
This commit is contained in:
evazion
2021-06-02 23:30:58 -05:00
parent 4003ddd788
commit 5b208ddb78

View File

@@ -61,7 +61,7 @@ class DiscordSlashCommand
end end
def is_nsfw_channel? def is_nsfw_channel?
command.channel.fetch("nsfw") command.channel.fetch("nsfw", false)
end end
end end
end end