-
Notifications
You must be signed in to change notification settings - Fork 5
GodotcordImageManager
Drachenfrucht1 edited this page Aug 18, 2021
·
2 revisions
A wrapper of the Discord Game SDK Achievement Manager.
A wrapper of the Discord Game SDK Activity Manager. This class is used to fetch the profile image of users.
void | get_profile_picture(user_id : int, size : int) |
- profile_picture_callback(user_id : int, image_data : PoolByteArray)
Emitted when a profile picture has been fetched. The image data is returned as a byte array in image_data
.
See the example on how to convert the raw image data into a texture to use it in Godot.
Fetches the profile picture of user user_id
.
Emitts the signal profile_picture_callback
with the image data cropped to size*size
pixels.