Adding bot permissions to relationship

pull/8/head
sgoudham 4 years ago
parent 8750594a51
commit 29ad86f93a

@ -5,7 +5,7 @@ from contextlib import closing
from discord import Member, Embed, Colour from discord import Member, Embed, Colour
from discord.ext import commands from discord.ext import commands
from discord.ext.commands import BucketType, command, cooldown from discord.ext.commands import BucketType, command, cooldown, bot_has_permissions
import db import db
from settings import colour_list from settings import colour_list
@ -246,8 +246,9 @@ class Relationship(commands.Cog):
# Send out an error message if the user waited too long # Send out an error message if the user waited too long
await ctx.send("**(。T ω T。) They waited too long**") await ctx.send("**(。T ω T。) They waited too long**")
@command(name="minfo", aliases=["Minfo", "mInfo"]) @command(name="marriageinfo", aliases=["minfo", "Minfo"])
@cooldown(1, 1, BucketType.user) @cooldown(1, 1, BucketType.user)
@bot_has_permissions(embed_links=True)
async def m_info(self, ctx, member: Member = None): async def m_info(self, ctx, member: Member = None):
"""Marriage Information!""" """Marriage Information!"""

Loading…
Cancel
Save