From f58f6bb6d2e90bd3572cd236384cd44032ff4d07 Mon Sep 17 00:00:00 2001 From: Vexed <51716387+Vexed01@users.noreply.github.com> Date: Thu, 11 Jun 2020 18:31:49 +0100 Subject: [PATCH] Update `dm` docstring for readability and grammar (+ period in `contact`) (#3946) * update `dm` docstring * few changes * hmm * cant make my mind up how to word it * fk i forgot "and" this is the last one, i promise * add missing full stop in `contact` as im in this area of core_commands * oh, see ^^^ review * `click on` instead of `select` Co-authored-by: Vexed01 <> Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com> --- redbot/core/core_commands.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/redbot/core/core_commands.py b/redbot/core/core_commands.py index 823786210..fb86b676b 100644 --- a/redbot/core/core_commands.py +++ b/redbot/core/core_commands.py @@ -1638,7 +1638,7 @@ class Core(commands.Cog, CoreLogic): @commands.command(cooldown_after_parsing=True) @commands.cooldown(1, 60, commands.BucketType.user) async def contact(self, ctx: commands.Context, *, message: str): - """Sends a message to the owner""" + """Sends a message to the owner.""" guild = ctx.message.guild author = ctx.message.author footer = _("User ID: {}").format(author.id) @@ -1737,12 +1737,13 @@ class Core(commands.Cog, CoreLogic): @commands.command() @checks.is_owner() async def dm(self, ctx: commands.Context, user_id: int, *, message: str): - """Sends a DM to a user + """Sends a DM to a user. - This command needs a user id to work. - To get a user id enable 'developer mode' in Discord's - settings, 'appearance' tab. Then right click a user - and copy their id""" + This command needs a user ID to work. + To get a user ID, go to Discord's settings and open the + 'Appearance' tab. Enable 'Developer Mode', then right click + a user and click on 'Copy ID'. + """ destination = discord.utils.get(ctx.bot.get_all_members(), id=user_id) if destination is None or destination.bot: await ctx.send(