#social-sdk-dev-chat
1 messages ยท Page 1 of 1 (latest)
24th June, 9 pm CEST
if the whole internet goes down again during me doing the Introduction Talk, we will all know the problem is me.
Looking forward to this. I was on the cusp of putting together a Discord MMO purely using slash command alone.
Woah that sounds cool as hell. How would that work?
The two approaches were either frames with ASCII messages or emoji map tile set. Slash commands there to open up the โscreen.โ Iโm excited to make all of this way simpler with SDK ๐
Off-topic
Oh dang it would be so cool to make a ACII based console game in a message ๐
Hii
Hey can someone lead me to the support tickets ^^
This server is for help with Discord APIs, SDK and other various integrations. For general support, please contact Discord at https://dis.gd/contact, or send us a message on Twitter at @discord_support
hello. why does it look so bad, there is no closure, the bottom of the profile is also all the indents are not equal and somehow it all looks asymmetrical?
let's hope no outages happen on tuesday (if a outage does happen let's just say it will be chaos)
fr
solar flares
Solaris mentioned :fire::fire::fire:
I'm sorry Colin but I just gotten confused
OHHHHHHH I know what you're talking about now
Hi there everyone, I have a question about the Discord Social SDK, from these docs:
https://discord.com/developers/docs/discord-social-sdk/development-guides/account-linking-on-consoles#manual-flow-for-console-authorization
Specifically the Manual Flow for Console Authorization section.
In the first step with instructions on how to Request a Device Code from Discord, the endpoint it shows is "{API_ENDPOINT}/oauth2/device/code"
but whenever I hit that endpoint it returns a 404.
and when I read the rest of the doc, the bottom section with the example titled Example for Manual Token Authorization
The endpoint is listed as /oauth2/device/authorize and not /oauth2/device/code.
I ran the python script, with a client id that I have been using in a live client, and the example code itself returns a 401 stating an invalid Client ID.
Any help would be greatly appreciated thank you!
Hi there everyone, I have a question
ูุงู ุงูู ู ุฑู ุงุดูู ุทุงูู ุนู ู ุฏูุณููุฑุฏ
#rules: English only
You did it! ... ๐
Yay
i am new to c++, is it normal for these includes to not have ".h" at the end? my IDE is complaining about them
trying to migrate from game sdk to social sdk and am immediately stumped here
also i noticed there's a plain C header in the provided social sdk. Is there documentation and/or examples for it? I'd much prefer to use that instead of CPP
yes that is normal
c++ does not use .h for stl includes
Oh I mustโve forgot to set the file type to c++ instead of c then
๐ซข๐ซข๐ซข
Don't be rude
Just stating my opinion
Thats not excuse in the slightest
Its the server rules
Cool, have a nice day โบ๏ธ
but i don't want it
that's not the social sdk, that's just the game overlay - you can disable it globally or per-game in user settings under "Game Overlay"
oww okay thank you its okay
I made a C++ module wrapper for the Discord Social SDK, which to my knowledge is the only one that exists. Iโm sure many would like to be able to use the Discord Social SDK using modules rather than headers, so could something like this eventually be merged upstream?
Those are typically used for FFI for other languages
oh I see. Since I was mainly inquiring about C due to me using Swift, I might look at creating Swift bindings with that. Thanks for explaining
looks cool
I have a problem and I have come here desperately to see if someone can help me. A few days ago I was repeatedly hearing on my phone the sound that Discord makes when you enter a chat without having it open. I deleted the app and I was still hearing it, so I formatted the phone. Now I'm hearing it on my computer without having Discord open. Have I been hacked or something like that?
This server is for help with Discord APIs, SDK and other various integrations. For general support, please contact Discord at https://dis.gd/contact, or send us a message on Twitter at @discord_support
Are the HTTP API Endpoints the Social SDK interacts with documented anywhere? Or are we expected to just use the library? Given the fact there's a sdk.social_layer oauth scope, I presume there's some sort of rest api
When chat going fast peuple
helo

It's going crazy people are in 1 hour's
Will the features like calling and messaging also be free?
Hey Mark.
Something I noticed as well, ICE, STUN and TURN are they all abstracted or configurable?
And possibly logs as well? Would like to see codex negotiation and a few other stats, are there plans to implement something surrounding that area?
Dead chat
can i ask for something, early verified bot developer still available?
It is not no, you had to have a bot that was within 75+ servers I think before a certain time.
thank u bro 
Can't your Ping everyone
Messaging and Voice are behind the "closed beta" - so you have to apply to use them at production levels. Rich presence is not though.
But once you have passed through the process, messaging and calling is no cost 
An interesting question - we actually hide all the implementation details from you. It's our voice system, so we manage the details.
For logs through, checkout our Debugging & Logging guide!
Cheers, yea I would have thought so as that delves a bit deeper into the architecture views. Will look at the log guide for sure thanks!

Did anyone record it I want to watch it
Please also don't forget to fill out the survey from today's event: https://dis.gd/june-social-sdk
Thank you for participating in our recent Discord Developers Event!
Your feedback is important to us as we continue to improve our platform and community events.
This short survey will help us understand what you loved and where we can improve. Your insights will directly influence future updates and how we share them with our developer communi...

@icy compass Could something like what I proposed here ever be merged upstream?
Or would there be any appropriate place where a feature like this could be discussed/requested?
#1350223314307776592 ๐
It looked like more of a help forum than a place to make requests
๐
well i missed that event can someone brief me abt this sdk
@tranquil robin
?
I need him for something
Don't randomly ping staff. Contact support instead
thx
oh sorry, where is support?
!support
This server is for help with Discord APIs, SDK and other various integrations. For general support, please contact Discord at https://dis.gd/contact, or send us a message on Twitter at @discord_support
ah.. it's that, well yeah that's the thing, do you mind if I DM you and talk to you about it, it's quite important and I don't think I can talk about it here, plus a human is required for me to like, get this out too
I don't work for discord. And discord doesn't have any form of live chat support
well that's why I tried to ping advaith, since he does, but I'm not allowed too it seems, but the reason I asked to tell you was just to see if you could maybe do something about it, yk like, contact someone about it to let them know or look into it, SINCE you are a moderator
Not possible, and no staff can help you directly either
Support is the only way
I've tried support, well, request actually, I've given multiple requests and appeals for something that I tried to thing the right thing for, with concrete evidence but Clyde would respond, not an actual person, and even with all the evidence I had, I didnt get appealed, I can show you if you want so you could at least know what it was about and why it's so important and why I needa talk about it
Discord has no live chat support, there isn't anything qe can do to help you
i see, that's very unfortunate ๐ญ
well then do I just keep trying with support or something?? cause I mean, talking with staff was really my only last ditch option I had to like, deal with this
the new stuff social sdk is for free using?
Yes! Check out our getting started guides
Hmmm
@green scarab

Hi! I was wondering what the chances are to be accepted for the beta features?
I don't really have a company or anything, I'm just really interested in trying the cross-platform messaging from ingame to discord... :D
It's also not a new game, I want to integrate it into an already existing game
Oh, it says these features are available, just with a rate limit?
Okay so I followed this: https://discord.com/developers/docs/discord-social-sdk/development-guides/sending-direct-messages#sending-a-direct-message-to-a-user
But I get
{"message": "Invalid Form Body", "code": 50035, "errors": {
"application_id": {"_errors": [{"code": "BASE_TYPE_REQUIRED", "message": "This field is required"}]},
"activity": {"_errors": [{"code": "BASE_TYPE_REQUIRED", "message": "This field is required"}]}
}}
I used the exact code from that snipped. Is this related to the beta limitation or did I just forget something?
Hi!
Hope everyone is doin great!
QQ, what are the current rate limits for rich presence activity updates? Trying to figure out the scope of real-timeness I can add to my app lmeow
Discord doesn't document exact rate limits and they can change at any time
While they can change at any time, you could run tests periodically or with a test app with social-sdk and purposely hit rate limits to find an approximate timing format. ... I just use the response when being rate limited and act accordingly by waiting. I don't try to reverse engineer the rate. BUT my stuff is very infrequent so my use case is different. For more realtime updates, I can see wanting to know around when you will be rate limited to slow down or prioritize updates to rich presence.
There's no need to "test" the rate limit, just follow the headers. It tells you what the limit is at the time the request was made.
Oh yeah.... I forget that... I hit it so infrequently I don't think about it much.
Thanks a lot for the insights! :D I just wanted to know the general limits to decide on which parts are worth updating between rounds, fair I can probably just check myself through the headers
iirc it was something around one update per 8 seconds or 4 per 15 I donโt recall exactly so I was trying to confirm but never seen it on the docs so my memory might be failing me
It would be a fun programming project to make a dynamic prioritizer. During bursts of updates (lots of players online) it "decides" which updates to ignore or postpone and which ones to queue for update. during slow activity, it does all updates until it starts getting close to limit ... I don't know... just my brain doing some storming without it being fully awake yet.
Hi so I have some design questions around the intent of Discord Social SDK
First, a bit about who we are, we are Heathen Engineering, we create tools for Unity and Unreal and in particular, integrations for platforms like Steam and well, with Discord Social SDK we are looking into that
But the whole "Guild/GuildChannel" and Linking a channel to a "Lobby" has me confused on the design intent
never mind the choice of naming the part, I don't understand is what Discord means to be done/used RE: Guilds (servers) and linking to their channels
Since a "Lobby" (chat group) cant be joined unless you know the secret, you cant get the chat group from the server so if there is an existing linked chat/lobby its what, just not joinable without human friction.
Then there is the question, if a channel can have 0 or 1 linked "lobby" I would assume only users with a given security permissions can link the lobby which means a game cant simply connect to the corresponding channel the server admin set up for it instead an officer of the "guild" would have to link them ahead of time in a way where the secret is known and it also means you cant have 1 channel multiple apps?
The more I dig into Discord Social SDK the more I am confused on the intended use cases
I'm sure I am just getting tangled up in some of the terminology
Hi so I have some design questions
so I am not a CTO at a big tech or a PHD in CS, but isn't it weird to use clientId and applicationId interchangeable within the codebase? In the header I can find mentions of both applicationId and clientId, which i find confusing.
unless your app is extremely old, they always the same
and with extremely old i really mean extremely old, as in predating bot accounts
app id and bot id can be different, but client id is the same thing as bot id
client id is just the standardized term in oauth
ohh right, it makes sense now
this server is english only as per #rules
also no need to shout in all caps or to ping random people
this server is english only
Hmm
Ya there is glitch in discord in which let's take your example. Like you seeing your friends discord ID and you see guess what you can't see your self as friend in mutual friend section. Even though there is option is comming called ADD FRIEND only one friend is showing in his ID in mutual friend section
But wait who r u
anyone pretty experienced with game sdk?
It's best to ask your question so those who can help will help
i don't know to make anything regardin this new SDK. I find it very confusing. I want to make my game's rich pressence + the description and discovery of the game like all the new game have. So i can have those badges on the game, like trending, new game or whatever there is as i've seen..
So you have a game you want to incorporate the social SDK into, then? Have you read the overview of the SDK? The more specific you are the more likely people are going to be able to help you
Yes, i did everything regarding unity.
Sadly, we get a holy craptonne of low-effort "it doesn't work" 'questions' that we tend to ignore questions that don't have actionable answers
The best way to get help is to make a post in #1350223314307776592 that explains:
- where you're at with your game
- what you want to use the SDK to add to your game
- what you've read of the SDK docs
- what you've tried to do
- what you expected it to do
- what you don't understand
The more information you give the better chance people will jump in and help
You're right. And I apologize. At the moment i am so confused about this (even tho it might be the easiest thing ever to do) , that I don't even know what to ask, and how to be exact.
No need to apologize! You're new here and still figuring stuff out. It's totally OK
The getting started guides will step you through rich presence!
has anyone worked with the plain C header and figured out how to make a Discord_String that gets accepted? I tried recreating AllocateString(std::string const& str) in my target language but I think it gets rejected by discord cause i don't see the state and details in my status
I figured out what could be wrong with the String, but I think it's still getting rejected. I tried using Discord_ClientResult_ToString, but I think some async stuff is happening so I haven't gotten my results printed yet
i remember with gamesdk we couldn't change the activity name and activity type. is that still a thing with social sdk?
Hi, I was wondering if stuff like %APPDATA% works for paths in launch commands? https://discord.com/developers/docs/social-sdk/classdiscordpp_1_1Client.html#a024d7222931fdcb7d09c2b107642ecab
nvm I just figured out that the command gets registered client side
so it can be different for everyone
which makes sense because the game path can be different
failed to update presence ErrorType: 6 Error: Field "state": String length is out of range. Must be between 2 and 128
is this characters or bytes?
characters most likely
nope, bytes
it complained about this string
after trimming the bytes it accepts it
why
i dunno, might be skill issue on my part cause the docs say characters
std::optional< std::string > discordpp::Activity::State () const
The state of the party for this activity.
See the docs on the Activity struct for more info. If specified, must be a string between 2 and 128 characters.
would it be possible to integrate this message into the sdk docs? i feel like it would be pretty helpful
#1356400359261736990 message
You can open a PR
is discord-api-docs also an issue tracker for the social sdk?
yeah
Hello, how I donwload the dll for c++?
One question guys, I download the social sdk for c++, the unique method for use it is clone a already existing .dll of the game, re-import all exportes from that dll + discord social presence, but I cant get it, I get the discord activity without buttons, only the information
Exist a example for create a dll?
code example of the buttons
https://discord.com/developers/docs/discord-social-sdk/development-guides/managing-game-invites
^ I think this guide should answer your questions
the button automatically appears if you set up game invites
make sure to check with a different discord account, I myself didn't see any button when looking at my own profile
lf developer for make this t_t
Hi there,
just a stupid question,
Where can I obtain the Android SDK?
I just found it, sorry to disturb
Gentle nudge reminder to follow #rules message in here with your messages.
Might be nice to add https://discord.com/developers/docs/discord-social-sdk/overview to the channel description
umm how do i use sdk
Hey,
I'm using the social sdk in unity (so, c# wrapper). I just wanted to know if we can disable timer in rich presence for some states.
Could anyone let me know if it's possible.
Thanks in advance.
do you mean the green timer?
Yes, exactly
could we disable it for some states? as there are states which doesn't need the timer.
i dont think it's possible, there's timestamps in the social sdk but i think they are a separate thing
Happening in 4 minutes if you wanna chat social sdk with us! https://discord.gg/discord-developers?event=1387866015123378329
Damn why did I not get a ping for this, I think I even clicked I'm interested :(
Is there a recording of it?
And can you ping some role next time ๐
we don't ping the role because discord already notifies people who clicked interested. we just ping those twice and ping a lot of people who are no interested if we ping the role.
and yes it was recorded, will be available later
Okay great, no idea why I didn't get the ping
Maybe I dreamed that I clicked "interested"
It might have been me (in which case apologies)
I clicked start on the stage, but not on the event... ๐คฆ๐ปโโ๏ธ (if only I knew someone to make this process a tad less complicated? ๐ )
the stage should start the event
and it did show in the sidebar as active during for me
huh it said to me it was "starting" still 
adds more items to the event running checklist to make sure everything works as expected
or you know, grab the code and simplify it ๐
heheheh exactly
LOL
no worries
hahahahaha
Does anyone know if its possible to setup rich presence in a unity project with the social sdk without the need for the player to click allow in the discord app?
I only know how to in the Legacy GameSDK but I want to update to a newer system.
yea
can you use this api normally without being approved yet?
any guidance or docs on how to use richpresence without connecting via oauth?
Yes. There are some stricter rate limits on some parts but afaik you can use all the features to test
I don't have the gtav enhanced in the registered activities anymore i removed it because it was showing an error below it. I think it might have been due to i had both the gtav legacy and enhanced installed. But now after i uninstalled gtav legacy it still doesnt register gtav enhanced back. It keeps adding the the Battleye Launcher and the rockstar games launcher. @dim venture
GTA5_Enhanced.exe is the correct executable.
Well again, not the channel for it :p wouldn't know
which is the right channel?
Oh this is it, didn't realise you pinged me in it
However most of these channels are for developers, this would be more supportish ig but someone who knows may be able to help
What I said is the only solution I know
For false detections ,contact dev support
how do i contact them?
!support
This server is for help with Discord APIs, SDK and other various integrations. For general support, please contact Discord at https://dis.gd/contact, or send us a message on Twitter at @discord_support
Endpoint /partner-sdk/token returns HTTP 500 Internal Server Error when external_auth_token is malformed (invalid/incorrect JWT token), which I expected more HTTP client error range like Bad Request and json with error data
can you make a github issue on discord-api-docs?
Sure!
bump
unsure if linux issue but whenever i try it i get the successful callback ran and no presence update on my account
i dont want to test, i want to use the api normally on my normal server
you don't need to authorize for just rich presence
just init the client and update the presence
Hello gamedev friends. I'm hosting an event on Thursday integrating the Social SDK into Unity and we'll be releasing a sample to make it super easy to do!

https://discord.gg/discord-developers?event=1387926677258109008
Please allow full posters to be accessible to everyone and not just crunchyroll ๐
Uhhh so hey guys?
I actually don't know much about the platform or how exactly it works but I wanna ask a couple questions if anyone is free
why do you not just ask the questions here instead of waiting for someone to reply and then they would need to wait for you to finally post the question?
That was a smarter idea
Uhmm so I was creating a bot jacklyn Jr w name BTW how ever I thought that I could yk code??? the bot on the discord dev website however I had to use a 3rd party site and it was a lil difficult to understand the ui and or they weren't active..
Also the bots function was to make random team for us in game but since I cant let the bot use I for from the app without fear of being banned is basically a random image selector that selects pre recorded images from a private channel... Ik lame but it's the best I came up with
This the scenario..
you should ask in #api-chat or create a thread in #1130593392296984686 , i personally don't know anything about making bots so can't help you
Thank u so much
Also are u good at server design
I would also like pointers to better my server
discord server? no
Ohhh okay
Late in (my afternoon) docs update - just split out https://discord.com/developers/docs/discord-social-sdk/core-concepts into multiple pages, which should make things easier to parse and understand (and find the things you are looking for). Let me know if you have any feedback!
can you share the code. are you updating the state, details etc in the callback itself by any chance?
Probably best in #1350223314307776592
i assume theres no way to avoid the social sdk and make network requests yourself right? im dealing with a confined environment that the precompiled binaries likely wonโt work on
chance of getting answered is higher if you create a thread in #1350223314307776592 . I personally cannot answer as I am not sure if this uses the normal Discord API under the hood or not
It mostly does but most of it isn't documented
interesting
unfortunate that it isnt documented
im working on a homebrew switch app and wanted to use social sdk features
ofc i doubt the sdk will run on a target that is basically bare metal
ohhh yeah that would do it. when i tried making something with libnx you had to get everything from their repo. aparently normal ARM packages don't work?
you could try using the .so that is provided with the SDK, it's ELF so should in theory work on arm @marble anvil
yeah they port software
what are you making by the way if you dont mind me asking?
discord rich presence sysmodule in swift for the switch
that's cool, i was planning to make something similar with the game sdk but never got around to it
i never went further than hello world xD
i managed to get swift to compile to aarch64-none-none-elf and work with the rest of the makefile example and also link with libnx and other switch port libs
probably not that big of an achievement to many but im not that knowledgeable with compilers
nah that's cool definitely. you should ask in the switch dev discord if someone tried the social sdk. i can send you the invite in DMs if you want
oh cool
iโd appreciate that thanks
is there a unitypackage for the social sdk
ps I also need to report something urgent to someone of discord's staff team idk where to go so please dm me about what it is(dont want to make a fuss and its not a ticketable matter or support)
!support
This server is for help with Discord APIs, SDK and other various integrations. For general support, please contact Discord at https://dis.gd/contact, or send us a message on Twitter at @discord_support
Yes if you go to the developer portal you can create an application and enable to Social SDK for it! From there you'll be able to download the Unity version of the Social SDK. We also just released this sample that implements OAuth, Rich Presence, and a working friends list for you
What does social SDK do?
Cool
thank you for the link, I will work on my game again and try and use it
no way what
yea I was making a game do need unity to quit being a bum and install again
it was supose to be a MMORPG but I think im gonna remake it again seeing I lost its source

Backends for MMO's are pretty tough to build and scale. I'm assuming you're looking at something off the shelf to do this work?
fortunately the old game used a mirror framework for it yes
but like I said its lost
git did not save the code 
but I did save the code by decompiling the steam upload right from the steamworks sdk
and it cant be to hard to remake
seeing the framework does a lot of the heavy stuff
Famous last words ๐
there's also auth, matchmaking, dedicated game server hosting, etc
I mean old code was a mess so its best anyway
unless it's all peer to peer?
auth is another reason to remake
I want to replace the steam login as username stuff with a better solution
as for server I use a server already mostly for my bot and hosting stuff
that being the bot might be good to focuss on Yuki too
wait maybe git did save
nope thats the old version
it's not
anyways does discord's social SDK support login
and is Discord's Client RPC still there
so I have a easy way to let users login on another platform then steam
but yes mark backends and networking for MMORPGs is extremely complex
and it sucks that mirror has no external server meaning I need to be careful with stuff like API keys
okay good, so it supports linking accounts โค๏ธ
I also take my guess and think it still detects the client's userid
like the old RPC sdk
might be handy for checking to see if a bad actor is attempting to evade a account ban
let me try the sdk sample by the way small tip maybe make a unitypackage
to import those into existing games
you see the recent unity sample?
I am currently testing it yes
would be amazing to see what can be done with the UMMORPG kit we use
maybe I can export to wasm and make it work inside discord 
I wish you the best of luck. ๐
thank you, it be on steam too if valve stops being nitpicky about the store assets
and planning on android
no IOS due to price

but let me see the SDK first
as in the sample
oh wait I found the unity plugin and such
oh wow it supports steam
good let me login to the steamworks page and link it
it works
now I will redo my game a little bit and see if I can implement it into the framework
can I chat ingame to my friends tho
https://discord.com/developers/docs/discord-social-sdk/development-guides/sending-direct-messages should be what you are looking for.
thank u
Hi, what is the social sdk
https://discord.com/developers/docs/social-sdk/index.html
Discord's Social SDK provides a way for games to deeply integrate with Discord. The SDK is a C++ library that Discord distributes and would be integrated and shipped with the game itself. We auto-generate a plugin for both Unity and Unreal and have a small sample app for each that demonstrates basic usage.
The SDK only provides access to data, it does not provide any UI. The expectation is that games will want to skin and customize any UI to match their gameโs aesthetic, and so the SDK just provides access to the raw data and allows games to build the UI as they see fit.
its a beta feature so I reapply to the beta we got rejected last time sadly
but this time I got a reason to reapply
seeing last time we where not clear what we wanted to do with it
oh shoot used wrong email

I use a diffrent one for discord
any1 got discord rpc libs c++
hey guys! what does the acceptance rate for the sdk closed program look like? I want to develop using the discord social SDK but I don't wanna develop & end up having to redo the entire thing if I figure out I get denied
any1 got discord rpc libs c++
you already said that bro...
what does sdk stand for
Software development kit
ok
Haw i start whith sdk ?
Are there any examples of mobile games using social sdk chat or voice?
I know Bloons TD battles 2 has discord integration but idk if they support chat or voice
Halfbrick Sports: Football shipped their social sdk chat today!
https://apps.apple.com/gw/app/halfbrick-sports-football/id6596812292
New Discord Voice & Chat!
Team up, talk, and score like never before! Now you can connect with friends via Discord voice and text chat directly in Halfbrick Sports: Football. Plan your plays, celebrate goals, and keep the banter goingโall without leaving the game!
thanks
FYI: don't look at the managing voice chat guide ๐ it's a tad broken atm. Fix is incoming. I missed a thing ๐ฌ
..all fixed! ๐
You'll notice the upcoming Social SDK Event has been changed (sneaky)!
Since communication features are now GA, we'll be covering the documented requirements you need to be able to remove development rate limits from the Social SDK!
https://discord.gg/discord-developers?event=1398421701779263648

hi someone know where to find the discord rpc sdk for visual studio 2003-2005? or someone with knowledge about to put rpc on tales of pirates Corsair files?
Are avatars for provisional accounts available from an cdn endpoint (similar to "https://cdn.discordapp.com/avatars/user_id/user_avatar.png" for regular accounts)?
I wasn't able to find one. I think the best option is to make a default avatar styled to your game and use that! It doesn't need to follow our conventions exactly and we want devs to be able to style their friends list in a way that matches the rest of your UI/game
I was slightly hoping to find something in our friends list starter pack figma but profile icons weren't in there sadly. Still a great resource though!
How do I apply as a Discord administrator?@anthony.tesija
Any reason you wouldn't be using the social sdk here? You can do rich presence with or without account linking
offtopic
Where is the dedicated channel?
there isnt. offtopic for this server. Please stick to chat about developing on discord
i am sry ๐
ok, thanks, I'll do that. And I guess if you would decide to make them available from the cdn, you could populate the avatar field, just like any regular user
hello! iโve got this silly idea, what if i made the Social SDK work as a minecraft mod using JNI? kind of like how the Essentials Mod does its thing but discord. and before i start going down the rabbit hole, i just wanted to check if anyone knows whether this is even possible in the first place
it shouldn't be too much trouble. i did a similar thing in swift for macos when i wasn't familiar with neither C or Swift (i still am)
dooooo iiiiiit
i'd take that as a yes and i actually can't wait to even prototype
I have a question
writing JNI means a lot of boilerplate coding, can be meditative at times, maybe fun for a short while, but gets quickly tedious. If you ask nicely you can probably get your AI assistant to do that for you
I tinkered around with this already, feel free to check out https://github.com/anderle02/discordbridgemod
I don't really have the time to code on big projects right now, but maybe it'll help you get started
- I'm not really experienced in java lol
Definitely feel free to contribute as well ๐
this is awesome to know, iโd most probably fork it or make a new branch to update to a newer mc version and try to add one of the many sdk features
Sure :D You can see I tinkered around here and there, not all works perfectly right now
itโs the foundation and the concept that matters, i most of all want to make the in game chat to discord chat bridge work nicely
Yeah but there's on thing why I stopped coding this feature
iirc current social sdk only supports sharing chat invites with some type of password
called "client secret" or smth
which you have sadly no control over
Discord doesn't check if a user has the permission to write in the lobby channel
it just checks this secret
So if someone gives away that secret to a friend they can join, even if they're not meant to
But yeah, maybe you can find a way around that
was that before the announcement in this category?
or has it most likely not changed
I haven't quite kept up yet but I think nothing about that changed
ah i see
I think the announcement was just that these features will now be available to everyone
Oh but I asked this already here https://discord.com/channels/613425648685547541/1389309591862640823
And Mark said he passed the feedback on to the team
So hopefully we can get that feature some day
@crystal vortex i just realized the readme was wrong it's 1.21.5 not 1.12.5 lol
oh okay i was wondering on why it was 1.12.5 and if it even had that many hotfixes
that makes much more sense
I don't even think fabric exists for that version lmao
Fabric is from 1.14 onwards
Ok
Yep and Iโve made enough bindings that I can use it in a Minecraft mod:
nice
I'm thinking of making bindings for rust but don't have access to the sdk... how do I get access to it?
rust as in the lang not the game lol
You should be able to find it in discord bot (app) menu
although itโs written in C++ so would work fine without bindings, right?
I need to fill this out to get access and there's no other way :/
well then fill it out with something
can you directly call c++ stuff from rust?
githubโcrates-ioโdocs-rs
what about instead of a mod... you make a launcher that has an easy way of joining mp server via a 'join game' button on the fiends list or something like that?
@lone badger
IF you have a question about the Social SDK just ask. Please don't ping random server members
Why is the sdk behind this? And if I make rust bindings/wrapper thingy can I share the sdk too or would the user of the bindings need to have access to it/download it them self?
Please reply with ping on
Making a launcher is harder
Is there a way to detect if discord is in streaming mode?
the thing that activates when you launch OBS? if so just make ur thing do the same
can someone help me why this shows when i turn off public bot
remove the default authorization link under "Installation" as it suggests
I've got a question about lifetimes, are these examples safe? Code is in C (using cdiscord.h)
Example #1 (address of stack variable is fine, or need to allocate everything?)
Discord_StatusDisplayTypes status_display_type = Discord_StatusDisplayTypes_Name;
::Discord_Activity_SetStatusDisplayType(&activity, &status_display_type); // status_display_type is a **stack variable**
Example #2 (when to drop, instantly or after callback?)
Discord_Activity activity;
::Discord_Activity_Init(&activity);
// set up activity...
::Discord_Client_UpdateRichPresence(&self.client, &activity, update_activity_callback, nullptr, nullptr);
::Discord_Activity_Drop(&activity); // **instantly** drop after the call
Example 1, Safe if the function uses the value right away and doesnโt keep the pointer. If it might keep the pointer, use memory that lasts longer, like heap or global memory.
Example 2, Safe if the function makes a copy of the data. If the function keeps using your data later (like in a callback) donโt drop it until itโs done.
Right, but how do I know what the function does? These are cdiscord.h functions
Look at the header or readme
The C headers have no comments and I don't see any readme file in the DiscordSocialSdk-1.5.10839.zip
That's C++
The C calls don't have any of the C++ memory management, I'm asking specifically about C
I'm happy to do so, I'm just wondering how long does the objects need to stay in memory (until call or until callback), and who is responsible to call Drop (me or the functions I passed a non-const pointer to already do it)
I'm pretty sure it just boils down to those 2 things
Pretty sure it would be you thats responsible, but i don't know the sdk internals myself
I hope somebody can clarify that, it's probably also good info for other language bindings creators
Opening an issue on github might be best
i donโt think they fully support it, you can check out the supported languages for SDK on this page
https://discord.com:2053/developers/docs/discord-social-sdk/core-concepts/platform-compatibility
other than that you may need to explore your current build setup for further details.
Sorry if this comes off as offensive but I'm getting big Chat GPT vibes from you @placid goblet ๐
For?
just a hunch
Alright, just helping
I appreciate it
for account appeals go to https://dis.gd/appeal
Done
now wait for them to respond
I got an mail
please stop going off topic
it's completely unrelated to this server and the social sdk
Hey! Does anyone have some ideas when it comes to building houses for a horror game?
not here
look at CPP header, they use the C functions in there
you will need to reimplement some stuff like Discord_String and the callbacks yourself if you want to use plain C
I did that and it seems to work, thanks ๐
// Assuming Discord_StatusDisplayTypes is an enum and Name is a valid typeDiscord_StatusDisplayTypes status_display_type = Discord_StatusDisplayTypes_Name; // Make sure 'activity' is properly defined and initialized before this lineDiscord_Activity_SetStatusDisplayType(&activity, status_display_type); // Pass status_display_type directly
Does the Discord Social SDK .aar conflict with GPLv3 license terms? Can I not use it in my GPLv3-licensed app?
Yes it can conflict... Discord's SDK Isn't GPLv3 compatible so using GPLv3 app may violate their license
aw man... thanks for the info!
Anytime! Glad I could help ๐
Hey, quick question, lets say you have a full client-sided application, so it uses public client, i noticed that the default presence permissions, allows you to actually manage the discord friends (add/delete), not just "game friends", won't this means anyone who steals the user token, can literally delete all user friends using that on behalf of whatever app id that requested the token? Is there a way to make a token with permissions to manage the game friends but cant add/delete discord friends for safety?
who are you worried about stealing the token?
like, are you talking about malware on the user's computer?
can be a malware on user machine or other person with access to it, or anything like that sincerely, would be good to have an option that my application token cant edit the user discord friends (can read but not edit), this way i can choose that to be safer.
consider their discord user token is stored on that same machine and can do more damage, i don't the user machine being compromised is a concern you should worry with
your apps token is gona be the least damaging they would have gotten
personally im using encryption and other measures, but if knowledgeable enough one can still grab the token from the user machine at the end of the day
it would require the same access and privilige level as other discord storage
also i noticed that sdk_layer gives permission to write msgs on user behalf (of course i can simply use the layer_presence), but wouldnt this give easier time for spam bot makers, mainly under public clients?
rate limits and discords anti-spam systems would still apply, this wouldn't bypass any of that
ok, i guess ill simply treat the aes256 and the user own machine protection to be enough then, thanks
Thank you for the presentation, I enjoyed it!
is it 100% your app?
if so, then it's your copyright, so the GPL doesn't matter
I used to pray for times like this. Now to wait for the 2026 update where I'll get to also change the activity name
@frigid gorge we added status_display_type so you can choose to show the details or state there, like Spotify does
oh man i was about to go to bed and now you are letting me know ๐ Gotta remember about this when I wake up
if you have more than two PLAYING activities discord will only show one of them on desktop is this new
i meant have more than one PLAYING activities*
happens on mobile aswell
does the privacy of a party actually change anything? since whether i do private or public it still shows "ask to join" ๐ค
Private:
The party is private (or unknown), which means that the user is in a party but it is not joinable without sending a request to join the party.
This is the default value. You will also receive this value when receiving other users' activities as the party privacy for other users is not exposed.
well yeah i read that but it doesn't match up with how it behaves?
Say more
like i said, whether i have it set as private or public it always shows "ask to join" to friends
it only shows "join" if i disable then re-enable either of the two privacy options in user settings however doing that for both privacy types makes it show "join" which doesn't make sense since logically it should stay as "ask to join" if i toggle them whilst in a private party?
(the options i'm referring to are these ones)
right - but from the docs, "privacy" doesn't control if it shows or not. It controls if a request is required, or if you can auto-join.
what I'm tryna say is:
- Public parties show "Ask to join" instead of "Join" until you disable then re-enable any of the settings in the "Activity Privacy" user settings tab
- Enabling either toggle in user settings whilst in a private party makes it act like a public one (it shows "Join" when it's private so should still show "Ask to join")
like this screenshot is when I'm in a public party and have "allow friends to join my game" enabled, it should show "Join" not "Ask to Join" if I'm understanding it correctly? (I'm friends with the person who sent me the screenshot)
Appreciate the more detailed explanation! That makes a lot of sense.
Public Party Join Issue
Heya, btw that bug with messages fetched from lobbies always showing up as โsent from gameโ still exists
it does not happen with DM messages
it's on the backlog.
also, another bug, deleted DMs can still be fetched
the deleted messages callback still fires
but if i refetch the DMs i can get the deleted messages back
further information: it appears to only happen if the messages were deleted with the program (the game) closed
and MessageHandle#EditedTimestamp returns 0 after a restart
MessageHandle EditedTimestamp Issue
http://youtube.com/watch?v=AlGrtgnCFc4 - The recording for our recent Discord Social SDK: Communication Features for Game Developers DDEVs event just went live.
We went through what is required to get the development rate limits removed for the Discord Social SDK communication features, as well as answer many of your questions!
Welcome to a deep dive into the Discord Social SDK's new communication features. In this talk, we break down everything game developers need to know to integrate powerful chat, voice, and social functions into their games.
Learn:
- What the Discord Social SDK is and why it's a game-changer for developers.
- The essential communication features ...
Just wanted to say hi. Our Studio just started to look at integrating Discord Social SDK within our basic game template we use for starting our game projects. I am the lead developer on this particular set of development sprints and these last three weeks I have been making good progress wading through the documentation and then implementing them withing an Unreal Engine 5.6 platform in blueprints, underlying C++ accessing Discord and the Unreal EOS Services. I was thinking of making a series of tutorials showing what I discovered and was able to get working. As I build these, I wonder where it would be best to expose these on this Discord Server for other Developers to utilize. It would be great to have a moderated Discord Channel in the Server for Community Tutorials. If not a channel, what is everyone's opinion on where would be the best place to put the links for the planned tutorials.
Maybe create a post in #1350223314307776592 and send a new video there whenever you release one? Then maybe a cool discord staff would pin a link in #social-sdk-announcements
I'd definitely watch this content if it's good
Are timestamps supposed to be in seconds? Maybe I am missing it in the docs but it's not specified anywhere
there's this in the class reference for ActivityTimestamp, but this doesn't seem to match up with the example, unless i am being dumb rn
what happens when i set start and end time to milliseconds
it seems to be just in seconds from what I can gather
Post in here
since it's relevant and useful for everyone, it's not spam ๐
If they are good (which I expect they will be amazing ๐ ) we can pin them too
Timing Analysis
What is the SDK?
Hey! Just wanted to ask if there's an easy way to use the social-sdk with a bevy(rust) game?
I mean yeah, but in the getting started tab I only saw c++, unreal and unity for platforms. Wanted to ask if there's something for rust (the programming language)
Hi there! Is the Social SDK going to be available for web targets?
Got the answer I was looking for from here ๐ ty! #1405657545271545979 message
You would need to FFI the C++ sdk across.
It's a pet project I've wanted to tackle for ages, but I've yet to find the time 
cxx or similar would likely be the way to go.
I see, thanks for the direction. I'll try to look into it!
Np. I only did a cursory glance, but i could never work out how to get cxx to load dynamic libraries, Must be a way though.
hmm yeah i guess, was just looking through cxx - don't really see that in examples
(LLM powered), but something like this might work:
// build.rs
fn main() {
cxx_build::bridge("src/main.rs") // Path to your Rust file with #[cxx::bridge]
.file("path/to/my_cpp_library_wrapper.cpp") // Your C++ wrapper source (if any)
.flag_if_supported("-std=c++17")
.compile("my_cxx_bridge"); // Name of the generated library
println!("cargo:rustc-link-lib=dylib=my_cpp_library"); // Link against your C++ shared library
println!("cargo:rustc-link-search=native=/path/to/cpp/library/dir"); // Specify library search path
}
To add the dynamic libs to the linker path
but I'll let you play with it ๐
Oh thanks!!! I'll definitely need playing around with it coz I don't really know c++ but no harm in trying xd
You can also do stupid stuff like me. I just called the underlying C API directly instead of learning how my language of choice interops with C++
lol
java only lets me interop with c do thats what i did too lol
Hello, new here. had a quick question (not sure if this has been asked before) but are there any console guidelines/requirements I need to be mindful of when integrating Discord Social SDK in our upcoming game?
https://discord.com/developers/docs/discord-social-sdk/design-guidelines/consoles ig that's a resource you're looking for
Thank you, i'll go through it
Whatโs SDK?
Software Development Kit
Sd
Are there any plans to write the SDK in rust? Or should I make a wrapper?
Whats that
does rust have autobindgen tools?
I think a wrapper is the way to go. I know there are a few devs in here that have expressed interest in Rust so might be worth seeing if any of them have attempted it!
Our recording on getting started with the Social SDK in Unity is now live! We walk through setting up Rich Presence, the friends list, and direct messages in Unity
In this video, we dive into building social features for your game using the Discord Social SDK and Unity. Learn how to implement key features like a friends list, rich presence, and direct messaging with pre-built prefabs. We'll walk you through setting up your application in the Discord Developer Portal, configuring the sample project in Unity...
guess it's time to learn c++ 
i think so
but theyre better working on C
Who here is good at C++
I'm sure a bunch of us are! Do you have a specific question that we can help w-
Segmentation Fault
you can also use the cdiscord.h file for c bindings
as someone else said , use cdiscord and peek at the c++ header to see how to implement stuff, since the cpp lib uses the C functions anyway
Not sure if it's the right channel to ask, but how can we handle accounts merged and lost data?
Basically, I merged my discord account to my app, but lost the tokens due to my local database being erased, and the unmerge option requires it. Is there a way around it?
?
You should be able to reauthenticate and get new tokens
By reauthenticate you mean perform a new merge? I am using external auth..
I have tried it and it errors out with This user already has an associated external identity, "code": 530023.
Or just use the auth token I have from connecting?
Do user tokens really exist on Discord?
You mean oauth tokens for the social sdk to get info about the current user? Yes those exist
Hi, I'm using the SDK for rich presence on my game in unity and I cannot see the status on my profile while I'm running the game. Do I need to somehow initialize it?
Is it possible to get the ClientResult?
or make the SDK do verbose logging
Forgot to tell that I already figured out
What ended up being the issue? Always great to post the fix in case others run into it!
Had to call the UpdateRichPresence function
And had to fill up the state and details
Hello everyone, started with the discord social sdk integration to our game and was just kind of doing a sanity check here: right now we get a popup every time we open the game to authorize the app, i assume there's required steps to get rid of this popping up everytime the user opens the game?
Hey! Sounds like you mean the OAuth pop up? When you call client.GetToken the callback actually gets a refreshToken that you can store and call client.RefreshToken with in the future to automatically authenticate your player.
See: https://discord.com/developers/docs/discord-social-sdk/development-guides/account-linking-with-discord#refreshing-access-tokens for a guide
Build games, experiences, and integrations for millions of users on Discord.
Hi, I am trying to edit a user permission in a lobby so I can link the lobby to a discord channel.
But I am getting this response while calling https://discord.com/api/v10/lobbies/{lobbyId}/members/{userId}, what am I doing wrong?
The only scope that returns a token is "identify", everything else returns "The requested scope is invalid, unknown, or malformed."
{
"message": "401: Unauthorized",
"code": 0
}
This endpoint can be used only either adding (PUT method) or removing (DELETE method) member in lobby, use PATCH /lobbies/{lobby.id} to update lobby members with members json key
And Unauthorized error means you passed invalid or malformed Authorization header
Thanks for replying.
I changed to PUT and now it gives me unauthorized..
I am using postman, I got the bearer token by calling https://discord.com/api/oauth2/token with grant_type:client_credentials and scope:identify.
This returns a bearer token that I copy pasted into authorization tab for the request with bearer token type, so not very likely I passed an invalid token...
The error made me think the scope was not good enough for /lobbies, but anything other then identify returns that the scope is invalid.
Switching to a bot token authorization on this call seems to have fixed the issue.
But still the sdk is returning this error:
[Error] [Discord SDK] [2025-09-22 17:45:01.675] [74260] (api_client.cpp:40): PATCH to https://gaming-sdk.com/api/v9/lobbies/xxxx/channel-linking failed. Error: HTTPStatus: 403 ResponseBody: {"message": "User does not have the necessary lobby permissions to perform this action", "code": 50241}
https://discord.com/developers/docs/discord-social-sdk/getting-started/using-unreal-engine on Step 4 of this page it says to "Click on the Downloads link under the Discord Social SDK section of the sidebar." There is no such link on the page. Can somebody please link me to whatever it is the instructions are talking about?
Build games, experiences, and integrations for millions of users on Discord.
Solved. The link does not show up until you provide Discord with your personal information first in the Getting Started link of the Discord Social SDK section.
So in this linked channel docs: https://discord.com/developers/docs/discord-social-sdk/development-guides/linked-channels
The example functions don't show how "Enable the CanLinkLobby flag (1 << 0) on your lobby member by either sending a request to the /lobbies/<lobby_id>/members/<user_id> endpoint or by including the member data in the body of the Create Lobby request." is done.
I'm using the unreal plugin and besides the above I should have all done for the channel linking, now just need to give the permission for channel linking.
Build games, experiences, and integrations for millions of users on Discord.
@grizzled path you cannot set that inside your game, it has to be controlled by your backend server
Okey thx, well that complicates things a bit.
Before I start developing: How high are the chances of a non-game being approved for lobby communication with the social sdk? To be clear, I'd be using that for synchronizing Discord chats for example
guys my discord is not loading gifs
any solution?
!support
This server is for help with Discord APIs, SDK and other various integrations. For general support, please contact Discord at https://dis.gd/contact, or send us a message on Twitter at @discord_support
likely not very high, that sounds like a misuse of the lobby system
you're welcome to reach out via the form with your use case though
I believe if I started the trend everyone would just follow so not going to do the work honestly
But thanks for telling in advance that you also rate it as a misuse
What is the general answering time for support tickets?
that depends on your ticket and the current queue, we have no insights into that
this channel is also specifically for the social SDK
Okay sorry. Ticket was in relation to that, so thought I'd ask here.
keep an eye out on your email, you will receive one as soon as they get to your ticket
Note that the DDevs server is only for dev support not for general discord support
yeah it was dev support related.
We are not support, we have no insights into their wait times
This server is mostly community helping community
does rich presence work on mobile/console or just pc? i assume so but i can't find any explicit mentions in docs of what features are supported on which platforms
Platform supported things work everywhere, Spotify, Xbox status, etc
Custom RPC, I think only works on PC builds that support the connection
the changelog for 1.1 includes "Added support for sending rich presence updates and invites without connecting to the Discord gateway on desktop"
which seems to imply that it directly goes via the discord api on not-desktop
I'm unsure of the specifics honestly
It can do both, on desktop it can connect directly to the local client to do rich presence without the additional oauth scope requirements
Thats what that changelog is about, them adding that feature
I am almost done with integrating discord into a game template using the social sdk and some server side c++. I have a question about the gg sans ttf font that is used in discord. The license restricts its use to Discord brand materials. If I am getting the text, user identity using the Discord Social SDK would that be considered Discord Branded as it is using Discord in the game?
At this point, I have a special function in my code to only get alpha and numeric characters for display as I don't have the rest of the unicode characters used by Discord to decorate people's names and be contained in the messages
You probably already saw this page on handling special characters which has some recommendations but gg sans is not currently an open-source font, so you are not able to use it at this time.
on new sdk nice
I've been using Noto Sans and its related emoji fonts as fallbacks. Not sure how Unreal handles fonts but in Unity I'm able to set up fallbacks where if a character isn't found in the main font it'll try to find it in others. You might be able to do something similar
I had to make a couple of calls to the Discord Server API via HTTP in my Unreal Engine C++ project. I know there is a D++ project that provides C++ functionality to most of the Discord related Server interaction. I have some questions before doing anymore with this.
First question, is there a D++ plugin for Unreal Engine? If not, should I just wrap it and make my own plugin?
Second question, should I just continue to make my own URL based http request to the Discord Server and skip the whole D++ approach?
Basically, is it just better to call the server api via URL for what I need or should I go through the process of adding D++ to UE and my project?
These APIs are meant to be called from your server backend, not from within your game client. We know not every game/app will have a server backend but to support linked channels, you really should have one and not make those calls from your game client.
The game I am making uses a listen server in Unreal Engine. Therefore, it is the not a client in the game but the Listen Server making the calls.
Gotcha, I'm not as familiar with unreal but if you can safely keep secrets like a bot token secure in that listen server then you could make those calls from that server
Any suggestions about messing with D++ or should I just stick to making one off calls via HTTP to the Discord API like I did to set permissions?
most discord libraries are pretty bot focused and I don't believe D++ has support for linked channels and lobbies at the moment
youd wanna check their reference/github or ask in their discord server
if you already have it working, theres only a few API endpoints youd need to support
The more I think about it, I know how to make the calls now .... so maybe messing with D++ just adds another level of complexity I really don't need. Like you said, I already know how to get it via the API endpoints. I will run this all by the Discord Social SDK team once I have the whole thing set up, along with the tutorials, before releasing it to the public.
can someone help me please
No one can and will help you here. Contact !support
This server is for help with Discord APIs, SDK and other various integrations. For general support, please contact Discord at https://dis.gd/contact, or send us a message on Twitter at @discord_support
you own a server against discord's TOS. what do you expect
I'm trying to launch a steam game with an invite, but not sure if this format is correct? It just get's stuck after I press a join button after requesting it from the another user.
Discord->Client->RegisterLaunchCommand(APPLICATION_ID, "steam://rungameid//1234567");
Also tried:
Discord->Client->RegisterLaunchCommand(APPLICATION_ID, "steam://rungameid/1234567");
Using unreal btw.
hey, so recently discord striked my account and logged me out and to log back in i have to verify with my phone number but i dont have access to that number anymore, any help on what i can do
!support
This server is for help with Discord APIs, SDK and other various integrations. For general support, please contact Discord at https://dis.gd/contact, or send us a message on Twitter at @discord_support
Hey! Have you tried using the RegisterLaunchSteamApplication() function? That one takes your Discord applicationID and the steamAppId
For the voice chat stuff in the SDK, is there a way of joining a lobby call on a server-ran bot account or something? Being able to directly store audio sent in those lobbies like that would be good for moderation purposes (with explicit user consent, discarding audio when it's no longer needed, following GDPR etc).
I would implement a clientside function that sends the data to the discord API and a server separately, but I'm concerned about users tampering with their clients to remove that
Hi, yes I also did that, sorry I forgot to mention it above.
Do you have an example of how it's getting stuck? Do you see anything like a "failed to open" modal or any errors?
sorry if this is the wrong chat, but how do I get rid of this ad?I have cancelled this multiple times, but it continues to show up even when Im not interested
!support
This server is for help with Discord APIs, SDK and other various integrations. For general support, please contact Discord at https://dis.gd/contact, or send us a message on Twitter at @discord_support
Gang we need to solve a crew with a mystery
It get's stuck here, and that ... never goes a way, I just need to boot discord each time. There is no error messages or anything.
Okey the missing part was this, now it works
anyone had crashes when trying to set images, urls and image texts in ue5 and did you find a way to avoid them?
this is what my dump seems to be crashing at:
Discord_String LargeImage__span;
FTCHARToUTF8 LargeImage__convert(LargeImage);
LargeImage__span.ptr = (uint8)LargeImage__convert.Get();
LargeImage__span.size = LargeImage__convert.Length();
Discord_ActivityAssets_SetLargeImage(&instance, &LargeImage__span);
Hello world 
Coming in late to this one - but I'll ask the fun question -- should your game server be a giant monolith of everything that happens in game?
If you are having a crash, can you start a thread in #1350223314307776592 with versions, repo steps, and crash logs etc, and I can pass it up to the eng team.
Amazing!! Also great to know that this is a setting that needs to be enabled
We cannot help with that here as no one here is part of Discord's support team nor do we have the tools or resources to do so. Please contact Discord's dedicated support team instead, as this is off topic, as per #rules.
This server is for help with Discord APIs, SDK and other various integrations. For general support, please contact Discord at https://dis.gd/contact, or send us a message on Twitter at @discord_support
Hello everyone, how do I get access to the social-sdk if I'm not associated with a company? I want to develop a rich presence feature for a open-source project.
@wraith surge you do not need to be associated with a company
Then what do I put in the form?
ig you can just put N/A etc
can you still use the sdk without doing this step?
you need to fill out the form to access the sdk download
but you could also use third-party discord rpc libraries instead of the sdk
ok thanks
Guys how to make rp game
Also for an open-source project which would you recommend, the discord social sdk or the legacy game sdk?
Just be aware that you'll want to review the sdk developer terms -- IANAL, but I wouldn't be putting the library in your repository, you should get other people to download and install it themselves (that's what we do in our open source samples at Discord), and what I do on my personal samples
what language is it in and what features do you want to use?
Can you let me dm you. someone on discord is age playing and i have proof of it like a video pls
!report
This server is for help with Discord APIs, SDK and other various integrations. To make a report to the Trust and Safety team, please use the in app reporting tool. For more information see this help article.
@dry hull pinging random staff members is not an applicable alternative to the proper report flows ^
Hey advaith
Idk if this is off topic at all
But how do you get into app development
Not even just specifically for discord
I want to get into that or quant development but I wanna see how someone done it
Is the social sdk supposed to be added to the server side of a game or client side
Hi folks!
Could someone clarify - if I want to use the button "Join" in the RPC, would it be possible for the user who is trying to join the game to get access to invite information in game without OAuth?
So is it possible to get from anywhere the needed information to join the lobby which secret and id was specified in invite after launching a game? Is ActivityInvite accessible in this case somehow?
No it ainโt possible to access the join information from anywhere without the user clicking like actually clicking the โJoinโ button. The secret is only delivered directly to the game when launched thru Discord. You canโt retrieve it thru RPC or the API without OAuth or the user interaction.
If im wrong someone please correct me
Thanks for the answer!
In my case, I want to get this information after the user interacts with the โJoinโ button. So the expected flow looks something like this:
The player clicked the โJoinโ button -> the game launches -> the game automatically joins the correct lobby using the specified party ID and secret (from discord invite).
Is this flow impossible without OAuth?
Ah i see
Itโs possible because when a user clicks Discords โJoinโ button, Discord directly launches the game and passes the joinSecret which then lets the game connect to the lobby without even needing OAuth for it
This isnโt really my space but thats to the best of my understanding!
Itโs possible without OAuth
Hm, thanks, sounds good ๐
But in this case, how can I get the party ID and secret in-game? By โlobby,โ I mean the in-game lobby, so I need this invite information (Party ID and secret) to perform the necessary actions inside the game.
I found functions SetActivityInviteCreatedCallback and AcceptActivityInvite for this purposes, but I wasn't sure that it will work without OAuth
Upd: it looks like the event registered via SetActivityInviteCreatedCallback on the start of the game isnโt fired after launching the game using the โJoinโ button. But I might be doing something wrong.
We have our Fall Platform Updates event later this week! If you have any questions about the Social SDK, ask away here! https://dis.gd/fall-questions
Nice! New update survey!
How do I make a music rich presence similar to the one Spotify has?
wooow
great
is not successful?
Could we ever consider making setter methods return *this instead of just being void? I would like to be able to method chain
is there any way of bypassing the sdk for example in unreal through a direct endpoint and some json payload, as setting images and texts seems to be causing hard crashes even in the newest version of the sdk.
The endpoints are not documented
If the sdk doesn't work, please file a bug report on gothub about it so it can be fixed
Do you have a link to the github page?
can only find social-sdk-unity-sample under discord in github.
thanks for the help, i have reported it there now!
Okay the crash was my error, will add it to the thread if someone else has similar issues.
Looks like this one is a bug, good catch! Making a PR for it in the docs
The latest lobby and invite code is now in the main branch of our sample! If you joined yesterday for our lobby and invite event we still have our survey open for feedback which helps us plan future events and prioritize new features 
Thanks for attending our DDevs event on building games with the Discord Social SDK
Your feedback is important to us as we continue to improve our platform and community events.
This short survey will help us understand what you loved and where we can improve. Your insights will directly influence future updates and how we share them with our dev...
is there unity c# docs for SetActivityJoinCallback()?
Should be similar to C++ version, it takes single argument and its callback that takes a string with Rich Presence join secret
https://discord.com/developers/docs/discord-social-sdk/development-guides/managing-game-invites#accepting-game-invites
private void OnActivityJoin(string joinSecret)
{
if (client == null)
return;
// joinSecret is pulled from the host's Rich Presence ActivitySecrets.
// Use the joinSecret to connect the players in your game.
Console.WriteLine("Joined an Activity!");
}
...
client.SetActivityJoinCallback(OnActivityJoin); // register activity join callback on Slayer SDK client
where do I look to find how to add to the recent activity tab?
aight
aws...
Does anyone have a code for a fivem bot with all the stuff?
Do you have a code for the full bot? It would be easier to send it to me.
Nobody here does, you're in the wrong place
This server isnt fivem related at all
Do you have a server related to fivem bot programming?
Use server discovery or server lists to find one
Hello the new maj is insane
Discord needs to make a way to organize servers bc iโm in too many servers and theyโre all over the place๐
They do? Folders have existed for a long time
hey, good morning
Why canโt we view others orb badge
Orb badges have nothing to do with the Social SDK, and badge discussions in general are off-topic for this server
You'd be bettter off asking in discord.gg/discord-townhall
Hi, I've been working on an opensource java library that calls the discord social sdk so that java based games can use it. I am not including the sdk in the repo, so it shouldn't violate TOS. Games will still need to provide it.
Right now the repo is private, but if a mod wants to take a look before I make it public, let me know. Its still in very early stages but currently can create/join voice lobbies. Open to feedback as well ๐
Woah, I'd love to see that
I've been testing around with a minecraft mod and a whole library would be super helpful!
Im looking to do something similar in the javascript world. We want chat/voice integration in a webapp, so we would have to send the audio and message data as a proxy stream forward. Do you happen to know if discord frowns on creating a thin client like this?
Do they have docs on their webrtc protocol? We use webrtc extensively in my job already. If they had an http api that let me join a voice channel as a user actively, I would be using that instead >.<
what you're asking just isn't possible, you can't send users or voice data as a user
best you can do is use a bot to send the messages
you can ignore what mr anderson said, none of it is relevant
Sorry, to clarify.
Even using an oauth2 flow I cannot send messages on behalf of a logged-in user? The goal of this platform is to integrate streaming protocols (video, audio, television) with discord chat of the end user. At the very least, we want message support, but would prefer voice support as well.
there is some sdk stuff to send dms but afaik it can't send messages on servers, and sending voice on their behalf doesn't work
you have stuff to let a user join a voice channel, but you can't send the voice data on their behalf
Am I reading the client SDK incorrectly then? Or is the voice support only for ephemeral lobbies created using the sdk?
yes, i don't think it works with voice channels in servers
Okay, so voice integration may need to be done using STUN integration outside of discord then? This documentation here can only be used for bots joining the channel? https://discord.com/developers/docs/topics/voice-connections
Build games, experiences, and integrations for millions of users on Discord.
you can send voice, but only for your bot account
you can't send it on behalf of users through their account
Gotcha, okay. So theoretically, could mux all incoming audio streams and pipe through the bot. I appreciate the help, we may end up contacting discord staff directly to see if there is an integration we can create, but this info has been extremely valuable
the sdk isn't for making an discord replacement client, its to make games integrate with discord
Unfortunately, we aren't trying to make a replacement client, but discord prevents embedding their official client into a widget/iframe, so we have no other choice
Please don't ping us for non-urgent issues
Discord developer portal
Discord Developer Portal then go to the 3 lines top left and click on applications and go from there
Build games, experiences, and integrations for millions of users on Discord.
Be active dev
Is there a way to get access to the Discord Social SDK for creating bindings to it in another language or is it only accessible for active game developers?
Yea
i mean you would need an app to test the bindings out properly so might as well register one. the process to get the social sdk is like 2 minutes
Hello, is there a way to check withing the SDK itself if discord is open before initializing the SDK ?
Yes, Iโve handled that before you can check if Discord is running before initializing by verifying the connection status first. Itโs a quick fix once set properly.
its pretty straight forward for native c# just extract theunityplugin zip then import the discord c# script and put the main dll in your projet root and when building that it gets placed to your programm root
the setup is simular in python but you will have to re-write the wrapper in python
for rich presence I'm guessing the join secret should be the lobby id (which is used to join) then the party id should be something different but unique such as the lobby owner's id right? ๐ค
Honestly - it can be whatever works for you and your game. We're not prescriptive.
Honestly
Hello, I'm not sure how to do this. I'm using "Rich Presence without Authentication".
Is there a way to check if discord is running without authentication?
EDIT: I didn't find a way, but I don't need it anymore
I need to actually try it myself, but Client::GetDiscordClientConnectedUser() (link) in theory should do the trick.
Or... you have access to the machine - check system processes ๐
Hello may you guys help me to find good website to buy cheap domain
That has nothing to do with the Social SDK. You could try asking in #dev-chat
Thanks
What is sdk?
Build games, experiences, and integrations for millions of users on Discord.
I cant use it in Roblox right?
Okay
How does an anti nuke bot stops spam nukes and raids how does it work
You already got answers in dev chat. This channel is also for the Social SDK...so if you want a more detailed answer, you can open a post in #1130600438811590709
This link does not work. It takes me to https://discord.com/developers/docs/social-sdk/installation.html, but I cannot find the installation guides for Unity/Unreal
It seems that they are redoing the documentation
Sorry, docs are having a short accidental nap. They'll be back in but a blip of time.
Docs are back!
Thanks 
Omg! I miss event. ๐
it will be up on https://www.youtube.com/@discorddevelopers soonโข
Oh, good!
I am interested in using the Discord Social SDK in a game I'm developing and I have a few questions:
- does the Discord Social SDK handle regulatory requirements such as the age verification required by some countries for the features it provides or do I have to handle it separately?
- what are the minimum system requirements for the Discord Social SDK?
what specific ID verification is needed for having oauth integration and a shared friends list?
i also dont think there are system requirements for the sdk...as its just a toolkit for integrations between discord and your game
I mean for the chat features.
Like DMs and lobbies for example.
To clarify, I meant the age verification regulations imposed by some countries to access social media. So what I'm asking is if the Discord Social SDK performs age verification when a player creates either a full or provisional account. Or is it my responsibility to do such age verification for the ingame chat features provided by the Discord Social SDK. Specifically, the DM and lobby features. Since by definition they can be considered "social media" by the laws of some countries.
The Social SDK Terms cover age verification: https://support-dev.discord.com/hc/en-us/articles/30225844245271-Discord-Social-SDK-Terms
This is our platform compatibility matrix: https://discord.com/developers/docs/discord-social-sdk/core-concepts/platform-compatibility
The overhead of the Social SDK is minimal, so a "system requirements" is basically "have computer" ๐
Build games, experiences, and integrations for millions of users on Discord.
-# nobody saw anything
only requirements so far are x86_64 unless on mac which is provided as a fat binary for both x86_64 and aarch64. the library is distributed as a elf on linux but it's still only x64 there
Is there any way to utilize the social sdk with languages doesn't support the cpp ABI? (in my case, rust) cdiscord.h doesn't seem to allow discord client creation
Atleast I have not figured out a way to create a client with the C headers
Never mind, forgot how sdks which are normally cpp for c works ๐คฆ
for anyone else having the same issue this is the general structure for doing it in rust:
fn main() {
unsafe {
let mut client: MaybeUninit<Discord_Client> = MaybeUninit::uninit().assume_init();
Discord_Client_Init(client.as_mut_ptr());
}
}
Are you using https://cxx.rs/ ?
I've been meaning to sit down at some point and play with this, but haven't had time 
Ok. Thx.
I'll take a look at it, thanks! maybe it would be better, but using discordc.h seems to work fine and implement all functionality a user would need :)
What's the general rules for creating wrappers on the social sdk, other than not redistributing the download (aka making the user provide their own sdk installs)
I thought I'd make a rust one since I'm going to use it in rust myself
Points back the Social SDK Terms ๐
Didn't see any other rules than that regarding this in the terms, so I'll use those terms :)
Has anyone ran into an issue where they set a Rich Presence, but it immediately gets removed, even though the game is still running?
I haven't seen that, can you share the code you're using to set Rich Presence?
it's just this
public void SetRichPresence(string details = null, string state = null)
{
if (client == null || !isInitialized)
{
Debug.LogWarning("[DiscordService] Cannot set rich presence - not initialized");
return;
}
Debug.Log($"[DiscordService] Setting rich presence: details='{details}', state='{state}'");
var activity = new Activity();
activity.SetName("Abysswalkers");
activity.SetType(ActivityTypes.Playing);
if (details.IsNotNullOrEmpty())
{
activity.SetDetails(details);
}
if (state.IsNotNullOrEmpty())
{
activity.SetState(state);
}
activity.SetSupportedPlatforms(ActivityGamePlatforms.Desktop | ActivityGamePlatforms.IOS | ActivityGamePlatforms.Android | ActivityGamePlatforms.PS5);
client.UpdateRichPresence(activity, (result) =>
{
if (!result.Successful())
{
Debug.LogWarning($"[DiscordService] Failed to update rich presence: {result.Error()}");
}
else
{
Debug.Log("[DiscordService] Rich presence updated successfully");
}
});
}
but if I call it later in the game then it works fine... it seems to be either a race condition, or some other library in my game which might be also trying to set it somehow? I think steamworks does this for Steam games to show up automatically?
Weird because it should also work unauthenticated even right after starting up your game. Do you use the same client to set it at the start that you use for players to authenticate with?
Are you setting Rich Presence via RPC or is the user fully logged in?
logged in
Are you waiting or the SDK to hit Ready state before doing the Rich Presence setting?
if the sdk was not ready, i wouldn't be seeing the initial change in the first place, would i?
fwiw, that last sentence sounds sarcastic. I swear to god it's not
it's a good question, but ... maybe? ๐
it might end up RPC'ing instead.
ok... will double check. Not sure I saw where that state gets checked, but will look around. thank you
Build games, experiences, and integrations for millions of users on Discord.
Hey! Is there any way to set state_display_type with the Game SDK?
The "Clicking circles" part
oh wait, that's status display tupe. Is that what you wanted?
Also noticed you are asking about the GameSDK -- this channel is for the Social SDK (which I what we'd recommend you using anyway ๐ )
The social Sdk isn't available for x86 architecture ๐
i think you are mixing up state and status_display_type which are separate fields. you want state which is available in the gamesdk
At the moment the state is displayed like this on my project https://cdn.discordapp.com/attachments/1287491263628578982/1438596663676768417/image.png?ex=6917750c&is=6916238c&hm=e8e07a4d494d9245306ae270400ffa88af62719426a66a29c90fd8de6c6b7ae6&
the state gets moved into the tags section if you set party data i think
Mmmm i'll take look at it, thank you!
(using the very old discord-rpc solved the issue lol)
...what are you running on? now i'm curious.
i'm making hooks for a list of games and one of them is in 32bit

I'm trying to minimize the oauth scopes for my integration, which only sets game activity (no invites or anything). I don't need anything really beyond activities.write. Do I have to use auto scopes = discordpp::Client::GetDefaultPresenceScopes(); or can I use less? I'd prefer to only have the write permission args.SetScopes("activities.write");, but I always get login failures.
Authentication Error: OAuth2 Error: invalid_scope: The requested scope is invalid, unknown, or malformed.
In the list of scopes I don't even see openid or sdk.social_layer_presence . It also says activitites.write is not able to be used by apps (is this just for bots?) The social layer precense has 4 items and I don't want to scare off users.
mmm... they have it here https://discord.com/channels/613425648685547541/1382896996892803122 and they aren't going to fix this which is unfortunate. Their own docs say to minimize scopes but when you try to do that, you can't :/
Hi,
i'm integrating social sdk into my unity game. I want to get the access token and refresh tokens on my backend after getting the initial code from the client unity sdk.
Wondering how people are storing their access/refresh tokens. I can think of these options:
- store refresh token on server then request and send a new access token to client everytime the unity client connect to my backend. access token is only stored in memory in the client.
- store access token in client and refresh token on the server. Client checks if access token has expired and requests a new one from server which requests it from discord using refresh token.
- access token and refresh token are stored on the client. Some basic encryption to obfuscate it. Is this a security risk?
Thanks for any help or advice.
just answering myself here in case some reads i the future. i've been give advice to go with option 1.
hello i do have a question regarding the SDK
it seems like it is on x64 version. is there x86 version that can be downloaded
I believe it's 64 bit only, like Discord
Is the SDK not supported for HTML5 games yet?
the social sdk is for desktop/web/console games, i dont think there are any plans to support web games
What about desktop games that use web tech, eg Tauri/NWJS/Electron?
Just by the nature of what they are it makes no difference
Thise frameworks would need to integrate it and expose bindings to access it
So then you're in the realm of custom plugin wrappers for each individual tech
Hello, Can Discord's API service connect to any Discord channel, read channel chat records, and post chat messages?
Yoy mean the sdk? No
A bot can use the http api to read and send messages in in channel its bot user has been given permission by server admins. But thats separate entirely from the sdk
Thanks
Is it possible to use the social sdk and when a player authenticates to get invited to your private server?
you can have an invite in your application itself, but no the sdk doesn't allow you to force add people to your server
The closest thing to this is this ability to invite people into the linked channel in a lobby: https://discord.com/developers/docs/discord-social-sdk/development-guides/linked-channels#joining-discord-servers-via-linked-lobbies
Build games, experiences, and integrations for millions of users on Discord.
Will there ever be Godot C# bindings for the Social SDK?
Not aware if you can use the Unity bindings on Godot
Unofficial Godot wrapper: https://github.com/thiagola92/discord-social-sdk
Will it ever get official support like the Unity bindings?
You know I can't answer roadmap questions ๐
But apprecite the feedback!
Are there issues with the community wrapper?
Haven't tried it yet, and I don't know whether or not it can be called from C#
Give it a shot - let us know how it goes!
Hey guys, is there a chat here where you can share a tool I wrote on GitHub?
We don't have any project advertisement channels here. Except #1403120755360796762 but your project doesn't sound like it fits that category
Most likely, yes. Just wanted to share my testing tool
Which one?
The C++ one
I work in Py and SQL but let me see
What I see its looks like no
In the Android SDK v 1.5+, i noticed that when a user closes the webview login flow using the close button, no result or callback is returned to the app. In the earlier version close webview or cancel auth was provided in that case to with discordpp::Client::AuthorizationCallback.
could you confirm whether that change is intentional in v1.5+ ?
Guyz. I need help
please don't ping staff (or random users)
Hi, I'm curious if there's an example implementation for joining through activity in Unreal Engine?
There isn't one that I know of, only Unity. Try asking in #activities-dev-chat this channel is for the social sdk
thank you!
@static oak I have a question.
In 1.5+ we moved to enable native auth, it's possible the change happened because of that.
Yes, GameMaker supports social SDK
Kk
What does the social sdk do exactly?
It adds Discord style social features directly inside your game.
-Friends list inside the game
-Game invites (send/receive through Discord or in-game)
-Rich Presence (shows what the player is doing)
-In-game chat & voice using Discordโs network
-Cross-platform messaging between game and Discord
it gives your game built in social, chat, voice, and friend features powered by Discord without making you build them from scratch.
:O
That will be so useful
Specially bc I'm planning on adding 2 player online coop to my game
lowkey bored
Hi all, does someone know what specific scopes are required for game invites/join? I can see the callback for when another user sends a join request, but not getting the callback for local join attempt(I think this should be called after the invite has been accepted?)
If someone can point me to the docs or knows the scopes, I would be super grateful!
Invites should only require the GetDefaultPresenceScopes() but I think if you're using them with lobbies you'll need GetDefaultCommunicationScopes()
Also if it's a scope issue, you'll get an actual error, you won't get ghosted by a callback.
- https://discord.com/developers/docs/discord-social-sdk/how-to/debug-log may also be useful.
Thank you team! So it turns out that the callbacks are working, just not how I expected them to. Iโm still exploring, but Iโm pretty close to the goal now
I'm super excited to update that I've gotten invites through activity to work in unreal engine! I'm going to do it on a personal project(since this was for a client) and make a video/article about it. I love how seemless activities are for the users, and I think more devs should be exploring this for their games!
Awesome! Love to see how far you've gotten! Hope you continue to update us, goodluck!
Thank you!
just saw a Marvel Rivals now has the official Discord connection and thats really great thing to finally have!
when I created couple of projects - our team decided to make a similar integrations with Dota 2 statistics and Genshin Impact
thats how we made Dota 2 statistics back in 2023:
and here's Genshin one made by my friend Livixx
๐
is it possible to host an activity on https://domain1.com but call wss://subdomain.domain2.net
For activities, see #1219055432232992778 . But you can map whatever domain you want in the proxy
Hello everyone. I recently started implementing Rich Presence in our game via the Social SDK. Is there anyway to setup localization of the Rich Presence strings (like one Steam Rich Presence) ?
Unfortunately it's not supported here
I see, I'll stick to english for the time being. Thank you!
It's a good question. You can set the Activity.name now from withing the SDK, so you could set it to the language that the user uses in their own game - but it can't adjust to the language of everyone around them.
Is this a bug? I've restarted Unity multiple times and it's still there. (Unity 6.21)
I don't know why Unity can't recognize this DLL; I can't find it in the assemblies either.
Looks like you're trying to build with the Game SDK not the Social SDK. Is there anything in the Game SDK you're trying to use that isn't covered by the Social SDK? We don't really supprt that one anymore and we've got a ton of docs and tutorials showing how to use the Social SDK.
why would you want channel history in your game client?
channel messages ๐
there no bad evil ideas
Is it possible to use the social sdk and when a player authenticates to get invited to your private server?
I got the same problem once xD
Well all i did was deleting my old project and load the last saved checkpoint
After that i had full scces agaib... yet my app has no text chat ai anymore even though the code is fine
It works fine in an empty project, but it's not recognized in my game project. I suspect there might be a compatibility issue.๐ญ
i agree xD
You could create an invite to your private server that never expires and then when a user authenticates in your game show a button that uses that link to bring them to your server
Hello everybody
Hey Guys quick question about logins: Do I need to include 'Log in with Discord'? Or is it okay to have users log in with my own system first and then connect their Discord?
Actually that's preferred! We usually say "account linking with Discord". Also better in case the person has anything happen to their Discord account, they can still access the game.
See commentary here: https://discord.com/developers/docs/discord-social-sdk/how-to/integrate-moderation#handling-users-with-banned-discord-accounts
Build games, experiences, and integrations for millions of users on Discord.
Ok thanks that's perfect ๐ makes it more easy for me to manage user data

I have a game app that I am really trying to integrate player webcams and share screens. It is quite common for players to join a Discord group channel and share screens, but integrating that into my app, would be a huge boost to UX. I know this is currently not possible, just wanted to reach out regarding my use case as requested by @jade spear during the Unity stream. Would be happy to discuss in detail.
so with Discord's Social SDK, is it possible to get some button URLs to show when someone highlights your profile?
basically im trying to get buttons like this.
this one appeared when i highlighted on the voice channel and it showed what i was doing
im simply just trying to make a button that links to the steam page when they highlight the voice channel activity
so if someone is playing it in a voice call with multiple people, and someone looks at the call, they can get the game info there
was asking because i was hoping it was possible to use it with social sdk with unity
Ok one last question is this logo quality okay? I read that it needs to be high quality, but I can't find a way to get a better quality right now.
looks nice, dunno what requirements youre trying to hit
i believe its the pixel scale you are making the logo at, thats affecting the quality. if you are using 500x500 it would do this when you try to scale it bigger
is it safe to publish Application ID of my application?
i believe its the pixel scale you are making the logo at, thats affecting the quality. if you are using 500x500 it would do this when you try to scale it bigger
hello please tell me where to use activity party and activity secret and how to know is it working or not? private void SetupRichPresence()
{
Activity activity = new Activity();
activity.SetApplicationId(discordApplicationID);
activity.SetState(richPresenceState);
activity.SetType(ActivityTypes.Competing);
activity.SetDetails(richPresenceDetails);
var activityParty = new ActivityParty();
activityParty.SetCurrentSize(5);
activityParty.SetMaxSize(7);
activityParty.SetId("ghvy7834bsdc78ahv78");
activity.SetParty(activityParty);
var activityAsset = new ActivityAssets();
activityAsset.SetLargeImage("comical_white_persian");
activityAsset.SetLargeText("Cat King");
activityAsset.SetSmallImage("comical_white_persian");
activityAsset.SetSmallText("Hello king");
activityAsset.SetLargeText("Override");
activity.SetAssets(activityAsset);
var activityTimeStamp = new ActivityTimestamps();
activityTimeStamp.SetStart(richPresenceStartingTime);
activityTimeStamp.SetEnd(richPresenceEndTime);
activity.SetTimestamps(activityTimeStamp);
var activitysecrect = new ActivitySecrets();
activitysecrect.SetJoin("Please join");
activity.SetSecrets(activitysecrect);
client.UpdateRichPresence(activity, OnUpdateRichPresenceFinish);
}
why there is no join button in my rich presence in discord?
U ok
button is there
but you can't see it on yourself
oh sorry i thought it will be visible for myself also
that would have saved a lot of people that same confusion yes. but no buttons don't show for yourself
but how to know is some one joined through the button ?
and where the party size and number of current party size will be shown?
means this line of code var activityParty = new ActivityParty();
activityParty.SetCurrentSize(5);
activityParty.SetMaxSize(7);
activityParty.SetId("ghvy7834bsdc78ahv78");
activity.SetParty(activityParty);
Hi, is android supported for social sdk?
Build games, experiences, and integrations for millions of users on Discord.
Thanks mark! Unfrtunately, my engine is not currently supported. Is there a chance that unreal engine will be supported for android in the future?
Anyone know if CreateOrJoinLobbyWithMetadata (C# unity) works to set the CanLinkLobby flag. I'm still getting: onLinkChannelToLobby: ErrorType: 2 ErrorCode: 50241 HttpStatusCode: 403 Error: User does not have the necessary lobby permissions to perform this action"
Is a good question. I should go find out.
Out of curiousity, how is the general experience with Unreal on Android?
I have an Small Question is there an API Call to Link an Lobby to an Channel for Backends? Since in the Server APIs Docs i cant find it :/
You have to setup permissions manually - there's no implicit steps. 
https://discord.com/developers/docs/resources/lobby#link-channel-to-lobby This what you are looking for?
Build games, experiences, and integrations for millions of users on Discord.
I ended up using:
Ah, perfect! Thank you so much, especially for the quick response. ๐
Sorry wrong code:
var token = "bot token off website"
string URL = $"https://gaming-sdk.com/api/v9/lobbies/{lobbyId}/members/{idd}";
string data = @"{""flags"":1}";
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(URL);
request.Headers.Add("Authorization", "Bot "+token);
//request.Headers.Add("Authorization", "Bearer "+_BearerToken);
request.UserAgent = "Bot FGIntegration v1";
request.ContentType = "application/json";
request.Method = "PUT";
request.ContentLength = data.Length;
StreamWriter requestWriter = new StreamWriter(request.GetRequestStream(), System.Text.Encoding.ASCII);
requestWriter.Write(data);
requestWriter.Close();
try
{
// get the response
WebResponse webResponse = request.GetResponse();
Stream webStream = webResponse.GetResponseStream();
StreamReader responseReader = new StreamReader(webStream);
string response = responseReader.ReadToEnd();
Helpers.FgLogging(Helpers.LogLvl.Info, $"response9231849809 ----- {response}");
responseReader.Close();
}
catch (WebException we)
{
Helpers.FgLogging(Helpers.LogLvl.Info, $"except-----{we.Message}");
string webExceptionMessage = we.Message;
}
catch (Exception ex)
{
Helpers.FgLogging(Helpers.LogLvl.Info, $"except-----{ex.Message}");
// no need to do anything special here....
}
Only works with Bot token and not the Bearer token. That was a bit of a bummer.
The general dev experience can be difficult, because thereโs not much documentation, but Iโve found that you can generally get pointers in discords and asking native android devs.
If I weee to rate it out of 10 Iโll give it a 5, with development on pc being an 8
i'm back ๐ have an small question how to fix this and what exactly does it mean?
[4] [2025-12-16 17:58:26.243] [3184] (api_client.cpp:40): POST to https://gaming-sdk.com/api/v9/lobbies/1450532499292688560/messages failed. Error: HTTPStatus: 401 ResponseBody: {"message": "401: Unauthorized", "code": 0}

