Skip to content

Commit

Permalink
change method name of trigger_birthday
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulMarisOUMary committed Dec 30, 2023
1 parent 7537aaf commit be4c4c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cogs/birthday.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ async def show_birthday_message(self, interaction: discord.Interaction, user: Un
@commands.command(name="triggerbirthday")
@commands.is_owner()
@commands.guild_only()
async def config_invite_logs(self, ctx: commands.Context, guild_id: Optional[int] = None) -> None:
async def trigger_birthday(self, ctx: commands.Context, guild_id: Optional[int] = None) -> None:
"""Trigger manually the birthday."""
if guild_id and not guild_id in [guild.id for guild in self.bot.guilds]:
await ctx.send(f"Invalid Guild id `{guild_id}`.")
Expand All @@ -143,4 +143,4 @@ async def config_invite_logs(self, ctx: commands.Context, guild_id: Optional[int


async def setup(bot: DiscordBot) -> None:
await bot.add_cog(Birthday(bot))
await bot.add_cog(Birthday(bot))

0 comments on commit be4c4c2

Please sign in to comment.