DOCUMENTATION / DEVELOPER TEAMS
Build together.
Developer teams own applications. Community installations remain a separate permission boundary.
Team roles
Invite an existing Relay username from the console. The recipient must accept the invitation before it grants access. A team supports up to 25 members, and an account can own up to five teams. A team can own up to 25 applications.
| Role | Access |
|---|---|
| Owner | Transfer ownership; appoint administrators; all developer actions |
| Admin | Manage developers and viewers; application administration |
| Developer | Create and edit applications, commands, tokens and delivery settings |
| Viewer | Read application configuration, token metadata and delivery status |
The SDK Team model
bot.getTeam() returns the application’s developer team. It exposes id, name, icon, ownerId, owner, members, createdTimestamp and createdAt. Methods include iconURL(), toJSON(), toString(), and valueOf(). members is a Collection with find(), filter(), map(), first(), and normal Map operations. This is Relay’s team model; it does not connect to Discord.
const team = await bot.getTeam();
console.log(team.name, team.createdAt, team.owner?.name);
const developers = team.members.filter(member => member.accepted);
console.log(developers.map(member => member.name));
relay