Skip to content

services/role_manager

Defined in: services/role_manager.ts:10

Service for managing Discord guild roles programmatically.

Wraps the discord.js guild/role API behind a simple interface used by census functions and promotion logic to assign roles to members.

new DiscordRoleManager(): DiscordRoleManager

DiscordRoleManager

addRoleToUser(guildId, userId, roleName): Promise<void>

Defined in: services/role_manager.ts:39

Adds a named role to a guild member.

string

Discord guild snowflake ID.

string

Discord user snowflake ID.

string

Exact name of the role to add.

Promise<void>