-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsdkgen.lock
1 lines (1 loc) · 11.2 KB
/
sdkgen.lock
1
{"sdkfabric/discord":{"baseUrl":"https://discord.com/api/v10","security":{"type":"httpBearer"},"operations":{"channel.get":{"path":"/channels/:channel_id","method":"GET","return":{"code":200,"schema":{"$ref":"Channel"}},"arguments":{"channel_id":{"in":"path","schema":{"type":"string"}}},"throws":[{"code":400,"schema":{"$ref":"Error"}},{"code":404,"schema":{"$ref":"Error"}},{"code":500,"schema":{"$ref":"Error"}}],"description":"Get a channel by ID. Returns a channel object.","stability":1,"security":[],"authorization":true,"tags":[]},"channel.getPins":{"path":"/channels/:channel_id/pins","method":"GET","return":{"code":200,"schema":{"type":"array","items":{"$ref":"Message"}}},"arguments":{"channel_id":{"in":"path","schema":{"type":"string"}}},"throws":[{"code":400,"schema":{"$ref":"Error"}},{"code":404,"schema":{"$ref":"Error"}},{"code":500,"schema":{"$ref":"Error"}}],"description":"Returns all pinned messages in the channel as an array of message objects.","stability":1,"security":[],"authorization":true,"tags":[]},"message.getAll":{"path":"/channels/:channel_id/messages","method":"GET","return":{"code":200,"schema":{"type":"array","items":{"$ref":"Message"}}},"arguments":{"channel_id":{"in":"path","schema":{"type":"string"}},"around":{"in":"query","schema":{"type":"string"}},"before":{"in":"query","schema":{"type":"string"}},"after":{"in":"query","schema":{"type":"string"}},"limit":{"in":"query","schema":{"type":"integer"}}},"throws":[{"code":400,"schema":{"$ref":"Error"}},{"code":404,"schema":{"$ref":"Error"}},{"code":500,"schema":{"$ref":"Error"}}],"description":"Retrieves the messages in a channel.","stability":1,"security":[],"authorization":true,"tags":[]},"message.get":{"path":"/channels/:channel_id/messages/:message_id","method":"GET","return":{"code":200,"schema":{"$ref":"Message"}},"arguments":{"channel_id":{"in":"path","schema":{"type":"string"}},"message_id":{"in":"path","schema":{"type":"string"}}},"throws":[{"code":400,"schema":{"$ref":"Error"}},{"code":404,"schema":{"$ref":"Error"}},{"code":500,"schema":{"$ref":"Error"}}],"description":"Retrieves a specific message in the channel. Returns a message object on success.","stability":1,"security":[],"authorization":true,"tags":[]},"message.create":{"path":"/channels/:channel_id/messages","method":"POST","return":{"code":200,"schema":{"$ref":"Message"}},"arguments":{"channel_id":{"in":"path","schema":{"type":"string"}},"payload":{"in":"body","schema":{"$ref":"Message"}}},"throws":[{"code":400,"schema":{"$ref":"Error"}},{"code":404,"schema":{"$ref":"Error"}},{"code":500,"schema":{"$ref":"Error"}}],"description":"Post a message to a guild text or DM channel. Returns a message object. Fires a Message Create Gateway event. See message formatting for more information on how to properly format messages.","stability":1,"security":[],"authorization":true,"tags":[]},"message.update":{"path":"/channels/:channel_id/messages/:message_id","method":"PATCH","return":{"code":200,"schema":{"$ref":"Message"}},"arguments":{"channel_id":{"in":"path","schema":{"type":"string"}},"message_id":{"in":"path","schema":{"type":"string"}},"payload":{"in":"body","schema":{"$ref":"Message"}}},"throws":[{"code":400,"schema":{"$ref":"Error"}},{"code":404,"schema":{"$ref":"Error"}},{"code":500,"schema":{"$ref":"Error"}}],"description":"Edit a previously sent message. The fields content, embeds, and flags can be edited by the original message author. Other users can only edit flags and only if they have the MANAGE_MESSAGES permission in the corresponding channel. When specifying flags, ensure to include all previously set flags/bits in addition to ones that you are modifying. Only flags documented in the table below may be modified by users (unsupported flag changes are currently ignored without error).","stability":1,"security":[],"authorization":true,"tags":[]},"message.remove":{"path":"/channels/:channel_id/messages/:message_id","method":"DELETE","return":{"code":204,"schema":{"type":"any"}},"arguments":{"channel_id":{"in":"path","schema":{"type":"string"}},"message_id":{"in":"path","schema":{"type":"string"}}},"throws":[{"code":400,"schema":{"$ref":"Error"}},{"code":404,"schema":{"$ref":"Error"}},{"code":500,"schema":{"$ref":"Error"}}],"description":"Delete a message. If operating on a guild channel and trying to delete a message that was not sent by the current user, this endpoint requires the MANAGE_MESSAGES permission.","stability":1,"security":[],"authorization":true,"tags":[]},"message.crosspost":{"path":"/channels/:channel_id/messages/:message_id/crosspost","method":"POST","return":{"code":200,"schema":{"$ref":"Message"}},"arguments":{"channel_id":{"in":"path","schema":{"type":"string"}},"message_id":{"in":"path","schema":{"type":"string"}}},"throws":[{"code":400,"schema":{"$ref":"Error"}},{"code":404,"schema":{"$ref":"Error"}},{"code":500,"schema":{"$ref":"Error"}}],"description":"Crosspost a message in an Announcement Channel to following channels. This endpoint requires the SEND_MESSAGES permission, if the current user sent the message, or additionally the MANAGE_MESSAGES permission, for all other messages, to be present for the current user.","stability":1,"security":[],"authorization":true,"tags":[]},"message.getReactionsByEmoji":{"path":"/channels/:channel_id/messages/:message_id/reactions/:emoji","method":"GET","return":{"code":200,"schema":{"type":"array","items":{"$ref":"User"}}},"arguments":{"channel_id":{"in":"path","schema":{"type":"string"}},"message_id":{"in":"path","schema":{"type":"string"}},"emoji":{"in":"path","schema":{"type":"string"}},"type":{"in":"query","schema":{"type":"integer"}},"after":{"in":"query","schema":{"type":"string"}},"limit":{"in":"query","schema":{"type":"integer"}}},"throws":[{"code":400,"schema":{"$ref":"Error"}},{"code":404,"schema":{"$ref":"Error"}},{"code":500,"schema":{"$ref":"Error"}}],"description":"","stability":1,"security":[],"authorization":true,"tags":[]},"message.deleteAllReactions":{"path":"/channels/:channel_id/messages/:message_id/reactions","method":"DELETE","return":{"code":204,"schema":{"type":"any"}},"arguments":{"channel_id":{"in":"path","schema":{"type":"string"}},"message_id":{"in":"path","schema":{"type":"string"}}},"throws":[{"code":400,"schema":{"$ref":"Error"}},{"code":404,"schema":{"$ref":"Error"}},{"code":500,"schema":{"$ref":"Error"}}],"description":"","stability":1,"security":[],"authorization":true,"tags":[]},"user.get":{"path":"/users/@me","method":"GET","return":{"code":200,"schema":{"$ref":"User"}},"arguments":[],"throws":[],"description":"Returns the user object of the requester's account. For OAuth2, this requires the identify scope, which will return the object without an email, and optionally the email scope, which returns the object with an email.","stability":1,"security":[],"authorization":true,"tags":[]}},"definitions":{"Channel":{"description":"","type":"object","properties":{"id":{"description":"","type":"string"},"type":{"description":"","type":"integer"},"guild_id":{"description":"","type":"string"},"position":{"description":"","type":"integer"},"name":{"description":"","type":"string"},"topic":{"description":"","type":"string"},"nsfw":{"description":"","type":"boolean"},"last_message_id":{"description":"","type":"string"},"bitrate":{"description":"","type":"integer"},"user_limit":{"description":"","type":"integer"},"rate_limit_per_user":{"description":"","type":"integer"},"icon":{"description":"","type":"string"},"owner_id":{"description":"","type":"string"},"application_id":{"description":"","type":"string"},"managed":{"description":"","type":"boolean"},"parent_id":{"description":"","type":"string"},"last_pin_timestamp":{"description":"","type":"string"},"rtc_region":{"description":"","type":"string"},"video_quality_mode":{"description":"","type":"integer"},"message_count":{"description":"","type":"integer"},"member_count":{"description":"","type":"integer"},"default_auto_archive_duration":{"description":"","type":"integer"},"permissions":{"description":"","type":"string"},"flags":{"description":"","type":"integer"},"total_message_sent":{"description":"","type":"integer"},"default_sort_order":{"description":"","type":"integer"},"default_forum_layout":{"description":"","type":"integer"}}},"Error":{"description":"","type":"object","properties":{"code":{"description":"","type":"integer"},"message":{"description":"","type":"string"},"errors":{"description":"","type":"any"}}},"Message":{"description":"","type":"object","properties":{"content":{"description":"Message contents (up to 2000 characters)","type":"string"},"nonce":{"description":"Can be used to verify a message was sent (up to 25 characters)","type":"string"},"tts":{"description":"true if this is a TTS message","type":"boolean"},"embeds":{"description":"Up to 10 rich embeds (up to 6000 characters)","type":"array","items":{"$ref":"Message_Embed"}},"allowed_mentions":{"description":"","$ref":"Message_Allowed_Mentions"},"message_reference":{"description":"","type":"string"},"flags":{"description":"","type":"integer"},"enforce_nonce":{"description":"","type":"boolean"}}},"Message_Allowed_Mentions":{"description":"","type":"object","properties":{"parse":{"description":"An array of allowed mention types to parse from the content","type":"array","items":{"type":"string"}},"roles":{"description":"Array of role_ids to mention (Max size of 100)","type":"array","items":{"type":"string"}},"users":{"description":"Array of user_ids to mention (Max size of 100)","type":"array","items":{"type":"string"}},"replied_user":{"description":"For replies, whether to mention the author of the message being replied to (default false)","type":"boolean"}}},"Message_Embed":{"description":"","type":"object","properties":{"title":{"description":"Title of embed","type":"string"},"type":{"description":"Type of embed (always \"rich\" for webhook embeds)","type":"string"},"description":{"description":"Description of embed","type":"string"},"url":{"description":"Url of embed","type":"string"},"timestamp":{"description":"Timestamp of embed content","type":"string"},"color":{"description":"Color code of the embed","type":"integer"}}},"Message_Reference":{"description":"","type":"object","properties":{"message_id":{"description":"Id of the originating message","type":"string"},"channel_id":{"description":"Id of the originating message's channel","type":"string"},"guild_id":{"description":"Id of the originating message's guild","type":"string"},"fail_if_not_exists":{"description":"When sending, whether to error if the referenced message doesn't exist instead of sending as a normal (non-reply) message, default true","type":"boolean"}}},"User":{"description":"","type":"object","properties":{"id":{"description":"","type":"string"},"username":{"description":"","type":"string"},"discriminator":{"description":"","type":"string"},"global_name":{"description":"","type":"string"},"avatar":{"description":"","type":"string"},"bot":{"description":"","type":"boolean"},"system":{"description":"","type":"boolean"},"mfa_enabled":{"description":"","type":"boolean"},"banner":{"description":"","type":"string"},"accent_color":{"description":"","type":"integer"},"locale":{"description":"","type":"string"},"verified":{"description":"","type":"boolean"},"email":{"description":"","type":"string"},"flags":{"description":"","type":"integer"},"premium_type":{"description":"","type":"integer"},"public_flags":{"description":"","type":"integer"}}}}}}