mirror of
https://github.com/polyjitter/searchbot-discord.git
synced 2024-08-14 22:46:55 +00:00
Fixing DM issues with nsfw
This commit is contained in:
parent
13c57dff51
commit
a17fd00de5
1 changed files with 2 additions and 1 deletions
|
@ -306,7 +306,8 @@ class Search(commands.Cog):
|
|||
term = ctx.message.content.replace(ctx.prefix, '', 1)
|
||||
term = term.lstrip(' ')
|
||||
# Does search
|
||||
msg = await self._search_logic(term, ctx.channel.is_nsfw())
|
||||
is_nsfw = ctx.channel.is_nsfw() if hasattr(ctx.channel, 'is_nsfw') else False
|
||||
msg = await self._search_logic(term, is_nsfw)
|
||||
|
||||
# Logging
|
||||
await self.info(
|
||||
|
|
Loading…
Reference in a new issue