Allow bot tokens to upload RPC assets #5207
-
I would like to be able to upload RPC assets using an application's bot token, similar to how dispatch used to work. Some background: I maintain elcord, a rich presence client for emacs. Elcord displays an icon for the current major mode for the buffer you have focused. There are lots of major modes, so many people submit PRs to add icons for their favorite major modes. This is fine, but it means I need to make sure the icons submitted are uploaded as RPC assets. This is tedious, so I wrote a script to upload the assets and a github action that gets triggered whenever I merge one of these PRs. Currently, that script uses a user token, but that's not ideal because it expires occasionally. I'd like to be able to use the token for the application's bot to upload assets for the application, similar to how dispatch allowed you to use a bot token to upload builds. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
you don't need to upload rich presence assets in the dev portal anymore, you can just put any image URL in your code (in place of the asset key) |
Beta Was this translation helpful? Give feedback.
you don't need to upload rich presence assets in the dev portal anymore, you can just put any image URL in your code (in place of the asset key)