A slash command decorated with @commands.has_permissions() or @commands.bot_has_permissions() will raise
AttributeError: 'PartialMessageable' object has no attribute 'permissions_for' when it is invoked via DMs.
Does anyone know a nice way to conditionally apply these decorators so they only apply for commands invoked in a guild and not in DMs?