Skip to content

Commit

Permalink
Added the code for #475
Browse files Browse the repository at this point in the history
  • Loading branch information
StephanAkkerman committed Feb 10, 2024
1 parent 164de38 commit 29ede31
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/util/disc_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,16 @@ def get_channel(
if channel.category.name == category_name:
return channel

# If the channel is not found, create it
# if category_name:
# category = discord.utils.get(guild.categories, name=category_name)
# return await guild.create_text_channel(
# channel_name, category=category
# )

# # Maybe read the category from the config file
# return await guild.create_text_channel(channel_name)


async def set_emoji(guild) -> dict:
"""
Expand Down

0 comments on commit 29ede31

Please sign in to comment.