Skip to content

Commit

Permalink
bugfix (function extract_channel_mentions)
Browse files Browse the repository at this point in the history
  • Loading branch information
1ntegrale9 committed Dec 9, 2023
1 parent eba5aef commit 288c5ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion daug/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def extract_role_mentions(guild: discord.Guild, text: str) -> list[discord.Role]


def extract_channel_mentions(guild: discord.Guild, text: str) -> list[discord.abc.GuildChannel]:
return [guild.get_channel(int(x)) for x in re.findall(r'<@&([0-9]{15,20})>', text) if guild.get_channel(int(x))]
return [guild.get_channel(int(x)) for x in re.findall(r'<@#([0-9]{15,20})>', text) if guild.get_channel(int(x))]


def get_related_tc(voice_channel) -> discord.TextChannel:
Expand Down

0 comments on commit 288c5ff

Please sign in to comment.