Reaction roles working. Management of message and reactions is messy and needs reinforcement.

This commit is contained in:
DefsNotQuack
2025-03-29 15:59:18 +10:00
parent c9f6a4c55d
commit e00d1fdce3
6 changed files with 331 additions and 8 deletions

View File

@@ -0,0 +1,17 @@
import discord
from data import react_roles
def update_react_role_embed(category_name):
# Generate role list
roles = react_roles.get_react_roles_by_category(category_name)
role_list = []
for role in roles:
emoji = role[2]
description = role[3]
role_list.append(f"{emoji} - {description}")
# Create an embed for the react-role category
embed = discord.Embed(title=f"**{category_name.capitalize()} Roles**",
description="React to this message to gain access to the relevant text and voice channels.\n\n" + "\n".join(role_list),
color=discord.Color.dark_orange())
return embed