?help in a private message no longer gives "I send you some help in the DMs" message

doc_update
Joey Hines 2018-09-21 21:08:14 -05:00
parent 6505b4df3d
commit a4a90ea626
2 changed files with 4 additions and 3 deletions

View File

@ -76,9 +76,10 @@ Then to find out more info about a location, use `?info`:
```
`?selling` can be used to find items for sale:
`?selling` can be used to find items for sale. Tip is better search for a subset of the item name.
ig for `enderchests` search `ender`:
```
?selling dirt
?selling ender
```
You can also search around a position for locations with `?find_around`:

View File

@ -78,7 +78,7 @@ class GeoffreyBot(commands.Bot):
logger.info("User %s, used command %s%s with context: %s", ctx.message.author, ctx.command, subcommand,
ctx.args)
if ctx.invoked_with.lower() == 'help':
if ctx.invoked_with.lower() == 'help' and ctx.message.guild is not None:
await ctx.send("{}, I sent you some help in the DMs.".format(ctx.message.author.mention))
async def on_command_error(self, ctx, error):