From 2caff9c089788ecc1fddf798589f1b4e7d347536 Mon Sep 17 00:00:00 2001 From: Lemon Rose Date: Sat, 10 Jun 2023 21:20:50 +0530 Subject: [PATCH] [JoinPing] help for `channels` + docstring `show` --- joinping/main.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/joinping/main.py b/joinping/main.py index a107bfd..9acfff5 100644 --- a/joinping/main.py +++ b/joinping/main.py @@ -142,6 +142,7 @@ async def jpset_msg(self, ctx, *, message: str): async def jpset_channels(self, ctx): """ Set the channels where the pings will be sent on member join.""" + return await ctx.send_help() @jpset_channels.command(name="remove", aliases=["r"]) async def jpsetchan_remove(self, ctx, *channels: discord.TextChannel): @@ -190,6 +191,9 @@ async def jpsetchan_add(self, ctx, *channels: discord.TextChannel): @jpset.command(name="show", aliases=["showsettings", "settings", "setting"]) async def jpset_show(self, ctx): + """ + Show the current joinping settings. + """ data = self.cache.setdefault(ctx.guild.id, guild_defaults) channels = data.get("ping_channels", []) message = data.get("ping_message", "{member.mention}")