Skip to content

Commit

Permalink
grab roles
Browse files Browse the repository at this point in the history
  • Loading branch information
trent-001 committed Feb 26, 2025
1 parent 9201ab3 commit 55890e1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,14 @@ app.get("/api/v1/get_all_connections", async (c) => {
name: e.name,
icon: discordServer.iconURL() || getRandomAvatarUrl(),
channels: textChannels,
roles: discordServer.roles.cache
.filter((role) => !role.managed)
.map((role) => ({
id: role.id,
name: role.name,
color: role.hexColor,
created_at: role.createdAt,
})),
twitch: twitch,
youtubeLive: youtubeLive,
youtubeLatest: youtubeLatest,
Expand Down

0 comments on commit 55890e1

Please sign in to comment.