diff --git a/DisCatSharp/Enums/Guild/PriceTierType.cs b/DisCatSharp/Enums/Guild/PriceTierType.cs new file mode 100644 index 000000000..174249d5a --- /dev/null +++ b/DisCatSharp/Enums/Guild/PriceTierType.cs @@ -0,0 +1,35 @@ +// This file is part of the DisCatSharp project. +// +// Copyright (c) 2021 AITSYS +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in all +// copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +// SOFTWARE. + +namespace DisCatSharp +{ + /// + /// Represents a price tier type. + /// + public enum PriceTierType : int + { + /// + /// Indicates that this is a role subscriotion. + /// + GUILD_ROLE_SUBSCRIPTIONS = 1 + } +} diff --git a/DisCatSharp/Net/Rest/Endpoints.cs b/DisCatSharp/Net/Rest/Endpoints.cs index b8158cff8..cf611a488 100644 --- a/DisCatSharp/Net/Rest/Endpoints.cs +++ b/DisCatSharp/Net/Rest/Endpoints.cs @@ -1,342 +1,366 @@ // This file is part of the DisCatSharp project. // // Copyright (c) 2021 AITSYS // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in all // copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. using DisCatSharp; namespace DisCatSharp.Net { /// - /// The endpoints. + /// The discord endpoints. /// internal static class Endpoints { /// - /// The base discord api uri + /// The base discord api uri. /// public const string BASE_URI = "https://discord.com/api/v9"; /// - /// The oauth2 endpoint + /// The oauth2 endpoint. /// public const string OAUTH2 = "/oauth2"; /// - /// The oauth2 authorize endpoint + /// The oauth2 authorize endpoint. /// public const string AUTHORIZE = "/authorize"; /// - /// The applications endpoint + /// The applications endpoint. /// public const string APPLICATIONS = "/applications"; /// - /// The message reactions endpoint + /// The message reactions endpoint. /// public const string REACTIONS = "/reactions"; /// - /// The self (@me) endpoint + /// The self (@me) endpoint. /// public const string ME = "/@me"; /// - /// The @original endpoint + /// The @original endpoint. /// public const string ORIGINAL = "/@original"; /// - /// The permissions endpoint + /// The permissions endpoint. /// public const string PERMISSIONS = "/permissions"; /// - /// The recipients endpoint + /// The recipients endpoint. /// public const string RECIPIENTS = "/recipients"; /// - /// The bulk-delete endpoint + /// The bulk-delete endpoint. /// public const string BULK_DELETE = "/bulk-delete"; /// - /// The integrations endpoint + /// The integrations endpoint. /// public const string INTEGRATIONS = "/integrations"; /// - /// The applications endpoint + /// The applications endpoint. /// public const string SYNC = "/sync"; /// /// The prune endpoint. - /// Used for user removal + /// Used for user removal. /// public const string PRUNE = "/prune"; /// - /// The regions endpoint + /// The regions endpoint. /// public const string REGIONS = "/regions"; /// - /// The connections endpoint + /// The connections endpoint. /// public const string CONNECTIONS = "/connections"; /// - /// The icons endpoint + /// The icons endpoint. /// public const string ICONS = "/icons"; /// - /// The gateway endpoint + /// The gateway endpoint. /// public const string GATEWAY = "/gateway"; /// - /// The oauth2 auth endpoint + /// The oauth2 auth endpoint. /// public const string AUTH = "/auth"; /// - /// The oauth2 login endpoint + /// The oauth2 login endpoint. /// public const string LOGIN = "/login"; /// - /// The channels endpoint + /// The channels endpoint. /// public const string CHANNELS = "/channels"; /// - /// The messages endpoint + /// The messages endpoint. /// public const string MESSAGES = "/messages"; /// - /// The pinned messages endpoint + /// The pinned messages endpoint. /// public const string PINS = "/pins"; /// - /// The users endpoint + /// The users endpoint. /// public const string USERS = "/users"; /// - /// The guilds endpoint + /// The guilds endpoint. /// public const string GUILDS = "/guilds"; /// - /// The guild discovery splash endpoint + /// The guild discovery splash endpoint. /// public const string GUILD_DISCOVERY_SPLASHES = "/discovery-splashes"; /// - /// The guild splash endpoint + /// The guild splash endpoint. /// public const string SPLASHES = "/splashes"; /// - /// The search endpoint + /// The search endpoint. /// public const string SEARCH = "/search"; /// - /// The invites endpoint + /// The invites endpoint. /// public const string INVITES = "/invites"; /// - /// The roles endpoint + /// The roles endpoint. /// public const string ROLES = "/roles"; /// - /// The members endpoint + /// The members endpoint. /// public const string MEMBERS = "/members"; /// /// The typing endpoint. - /// Triggers a typing indicator inside a channel + /// Triggers a typing indicator inside a channel. /// public const string TYPING = "/typing"; /// - /// The avatars endpoint + /// The avatars endpoint. /// public const string AVATARS = "/avatars"; /// - /// The bans endpoint + /// The bans endpoint. /// public const string BANS = "/bans"; /// - /// The webhook endpoint + /// The webhook endpoint. /// public const string WEBHOOKS = "/webhooks"; /// /// The slack endpoint. - /// Used for + /// Used for . /// public const string SLACK = "/slack"; /// /// The github endpoint. - /// Used for + /// Used for . /// public const string GITHUB = "/github"; /// - /// The bot endpoint + /// The bot endpoint. /// public const string BOT = "/bot"; /// - /// The voice endpoint + /// The voice endpoint. /// public const string VOICE = "/voice"; /// - /// The audit logs endpoint + /// The audit logs endpoint. /// public const string AUDIT_LOGS = "/audit-logs"; /// /// The acknowledge endpoint. - /// Indicates that a message is read + /// Indicates that a message is read. /// public const string ACK = "/ack"; /// - /// The nickname endpoint + /// The nickname endpoint. /// public const string NICK = "/nick"; /// - /// The assets endpoint + /// The assets endpoint. /// public const string ASSETS = "/assets"; /// - /// The embed endpoint + /// The embed endpoint. /// public const string EMBED = "/embed"; /// - /// The emojis endpoint + /// The emojis endpoint. /// public const string EMOJIS = "/emojis"; /// - /// The vanity url endpoint + /// The vanity url endpoint. /// public const string VANITY_URL = "/vanity-url"; /// - /// The guild preview endpoint + /// The guild preview endpoint. /// public const string PREVIEW = "/preview"; /// - /// The followers endpoint + /// The followers endpoint. /// public const string FOLLOWERS = "/followers"; /// - /// The crosspost endpoint + /// The crosspost endpoint. /// public const string CROSSPOST = "/crosspost"; /// - /// The guild widget endpoint + /// The guild widget endpoint. /// public const string WIDGET = "/widget"; /// - /// The guild widget json endpoint + /// The guild widget json endpoint. /// public const string WIDGET_JSON = "/widget.json"; /// - /// The guild widget png endpoint + /// The guild widget png endpoint. /// public const string WIDGET_PNG = "/widget.png"; /// - /// The templates endpoint + /// The templates endpoint. /// public const string TEMPLATES = "/templates"; /// - /// The member verification gate endpoint + /// The member verification gate endpoint. /// public const string MEMBER_VERIFICATION = "/member-verification"; /// - /// The slash commands endpoint + /// The slash commands endpoint. /// public const string COMMANDS = "/commands"; /// - /// The interactions endpoint + /// The interactions endpoint. /// public const string INTERACTIONS = "/interactions"; /// - /// The interaction/command callback endpoint + /// The interaction/command callback endpoint. /// public const string CALLBACK = "/callback"; /// - /// The welcome screen endpoint + /// The welcome screen endpoint. /// public const string WELCOME_SCREEN = "/welcome-screen"; /// - /// The voice states endpoint + /// The voice states endpoint. /// public const string VOICE_STATES = "/voice-states"; /// - /// The stage instances endpoint + /// The stage instances endpoint. /// public const string STAGE_INSTANCES = "/stage-instances"; /// - /// The threads endpoint + /// The threads endpoint. /// public const string THREADS = "/threads"; /// - /// The public threads endpoint + /// The public threads endpoint. /// public const string THREAD_PUBLIC = "/public"; /// - /// The private threads endpoint + /// The private threads endpoint. /// public const string THREAD_PRIVATE = "/private"; /// - /// The active threads endpoint + /// The active threads endpoint. /// public const string THREAD_ACTIVE = "/active"; /// - /// The archived threads endpoint + /// The archived threads endpoint. /// public const string THREAD_ARCHIVED = "/archived"; /// - /// The thread members endpoint + /// The thread members endpoint. /// public const string THREAD_MEMBERS = "/thread-members"; /// /// The guild events endpoint. - /// Used for stage events + /// Used for stage events. /// public const string EVENTS = "/events"; /// - /// The stickers endpoint + /// The stickers endpoint. /// public const string STICKERS = "/stickers"; /// /// The sticker packs endpoint. /// Global nitro sticker packs. /// public const string STICKERPACKS = "/sticker-packs"; /// - /// The store endpoint + /// The store endpoint. /// public const string STORE = "/store"; /// - /// The app assets endpoint + /// The app assets endpoint. /// public const string APP_ASSETS = "/app-assets"; /// - /// The app icons endpoint + /// The app icons endpoint. /// public const string APP_ICONS = "/app-icons"; /// - /// The team icons endpoint + /// The team icons endpoint. /// public const string TEAM_ICONS = "/team-icons"; /// - /// The channel icons endpoint + /// The channel icons endpoint. /// public const string CHANNEL_ICONS = "/channel-icons"; /// - /// The user banners endpoint + /// The user banners endpoint. /// public const string BANNERS = "/banners"; /// /// The sticker endpoint. - /// This endpoint is the static nitro sticker application + /// This endpoint is the static nitro sticker application. /// public const string STICKER_APPLICATION = "/710982414301790216"; + /// + /// The role subscription endpoint. + /// + public const string ROLE_SUBSCRIPTIONS = "/role-subscriptions"; + /// + /// The group listings endpoint. + /// + public const string GROUP_LISTINGS = "/group-listings"; + /// + /// The subscription listings endpoint. + /// + public const string SUBSCRIPTION_LISTINGS = "/subscription-listings"; + /// + /// The directory entries endpoint. + /// + public const string DIRECTORY_ENTRIES = "/directory-entries"; + /// + /// The counts endpoint. + /// + public const string COUNTS = "/counts"; + /// + /// The list endpoint. + /// + public const string LIST = "/list"; } }