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.

RoleAccess
OwnerTransfer ownership; appoint administrators; all developer actions
AdminManage developers and viewers; application administration
DeveloperCreate and edit applications, commands, tokens and delivery settings
ViewerRead 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.

JavaScript
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));