about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGriffin Smith <grfn@gws.fyi>2022-01-29T17·48-0500
committerclbot <clbot@tvl.fyi>2022-01-29T17·54+0000
commitacd472866180897f9b892ec3e772d18f621f864f (patch)
tree76e7762c4bd54803f294f00799133c2a8e970b25
parentddc33e849f29c4563cd62769e801315e1e54bf02 (diff)
fix(grfn/bbbg): Fill in the right organizer role ID r/3706
I figured this out by opening discord in my browser, navigating to the
"roles" section of the server settings page, and looking at the API
response for
https://discord.com/api/v9/guilds/<guild-id>/roles/member-counts - the
Organizer role has a unique member count, so I could sniff out its role
ID by looking at the JSON. There *might* be a way in the API to do this,
but I couldn't find it in the docs.

Change-Id: Idac72886b12d53a570b473b55ef0cf7f965d37f2
Reviewed-on: https://cl.tvl.fyi/c/depot/+/5116
Reviewed-by: grfn <grfn@gws.fyi>
Autosubmit: grfn <grfn@gws.fyi>
Tested-by: BuildkiteCI
-rw-r--r--users/grfn/bbbg/src/bbbg/discord/auth.clj3
1 files changed, 1 insertions, 2 deletions
diff --git a/users/grfn/bbbg/src/bbbg/discord/auth.clj b/users/grfn/bbbg/src/bbbg/discord/auth.clj
index a166373738..35bc580e39 100644
--- a/users/grfn/bbbg/src/bbbg/discord/auth.clj
+++ b/users/grfn/bbbg/src/bbbg/discord/auth.clj
@@ -37,8 +37,7 @@
    {::client-id (secret "bbbg/discord-client-id")
     ::client-secret (secret "bbbg/discord-client-secret")
     ::bbbg-guild-id "841295283564052510"
-    ;; TODO this might not be the right id
-    ::bbbg-organizer-role "874846495873040395"}))
+    ::bbbg-organizer-role "908428000817725470"}))
 
 ;;;