mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 19:28:54 -05:00
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>
This commit is contained in:
parent
da83e02749
commit
f58f6bb6d2
@ -1638,7 +1638,7 @@ class Core(commands.Cog, CoreLogic):
|
|||||||
@commands.command(cooldown_after_parsing=True)
|
@commands.command(cooldown_after_parsing=True)
|
||||||
@commands.cooldown(1, 60, commands.BucketType.user)
|
@commands.cooldown(1, 60, commands.BucketType.user)
|
||||||
async def contact(self, ctx: commands.Context, *, message: str):
|
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
|
guild = ctx.message.guild
|
||||||
author = ctx.message.author
|
author = ctx.message.author
|
||||||
footer = _("User ID: {}").format(author.id)
|
footer = _("User ID: {}").format(author.id)
|
||||||
@ -1737,12 +1737,13 @@ class Core(commands.Cog, CoreLogic):
|
|||||||
@commands.command()
|
@commands.command()
|
||||||
@checks.is_owner()
|
@checks.is_owner()
|
||||||
async def dm(self, ctx: commands.Context, user_id: int, *, message: str):
|
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.
|
This command needs a user ID to work.
|
||||||
To get a user id enable 'developer mode' in Discord's
|
To get a user ID, go to Discord's settings and open the
|
||||||
settings, 'appearance' tab. Then right click a user
|
'Appearance' tab. Enable 'Developer Mode', then right click
|
||||||
and copy their id"""
|
a user and click on 'Copy ID'.
|
||||||
|
"""
|
||||||
destination = discord.utils.get(ctx.bot.get_all_members(), id=user_id)
|
destination = discord.utils.get(ctx.bot.get_all_members(), id=user_id)
|
||||||
if destination is None or destination.bot:
|
if destination is None or destination.bot:
|
||||||
await ctx.send(
|
await ctx.send(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user