From 8986ce7f56c84c1dc152badd41a307099ede6bd2 Mon Sep 17 00:00:00 2001 From: Marco Thomas Date: Wed, 3 Feb 2021 15:22:47 +0100 Subject: [PATCH] Make invitelink command guild_only --- cogs/utility.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cogs/utility.py b/cogs/utility.py index 4dc25ba..f1d5d00 100644 --- a/cogs/utility.py +++ b/cogs/utility.py @@ -13,6 +13,7 @@ class Utility(commands.Cog): @commands.command(name="invitelink", aliases=["invite"]) + @commands.guild_only() async def invite_link(self, ctx, uses=100): """ Sends the server's invitelink to chat @@ -33,7 +34,7 @@ class Utility(commands.Cog): value=link, inline=True) link_embed.set_footer( - text=f"Age: {age}, Uses: {uses}", + text=f"This link will last {age} seconds and has {uses} uses.", icon_url=ctx.me.avatar_url )