mirror of
https://github.com/brandons209/Red-bot-Cogs.git
synced 2024-05-18 19:32:29 +12:00
cleaned up some stuff, fixed adding roles with spaces
This commit is contained in:
parent
58c1f67186
commit
3ae6922070
|
@ -1,6 +1,4 @@
|
|||
|
||||
from .birthday import Birthdays
|
||||
|
||||
|
||||
def setup(bot):
|
||||
bot.add_cog(Birthdays(bot))
|
||||
|
|
|
@ -88,7 +88,7 @@ class Birthdays(Cog):
|
|||
|
||||
@bday.command(name="role")
|
||||
@checks.mod_or_permissions(manage_roles=True)
|
||||
async def bday_role(self, ctx: Context, role: discord.Role):
|
||||
async def bday_role(self, ctx: Context, *, role: discord.Role):
|
||||
"""Sets the birthday role"""
|
||||
message = ctx.message
|
||||
guild = message.guild
|
||||
|
@ -115,7 +115,6 @@ class Birthdays(Cog):
|
|||
if birthday is None:
|
||||
print(self.BDAY_INVALID())
|
||||
await channel.send(self.BDAY_INVALID())
|
||||
|
||||
else:
|
||||
await self.remove_user_bday(message.guild.id, author.id)
|
||||
await self.get_date_config(message.guild.id, birthday.toordinal()).get_attr(author.id).set(year)
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"author": [
|
||||
"PancakeSparkle"
|
||||
|
||||
|
||||
],
|
||||
"bot_version": [
|
||||
3,
|
||||
|
@ -16,6 +16,5 @@
|
|||
"tags": [
|
||||
"brandons209",
|
||||
"pancakesparkle"
|
||||
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue