Make invitelink command guild_only

This commit is contained in:
Marco Thomas
2021-02-03 15:22:47 +01:00
parent c13a2f50d8
commit 8986ce7f56

View File

@@ -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
)