From 05c0e0f9d3f6f13d4b25a3ed67db932362697fd0 Mon Sep 17 00:00:00 2001 From: KamalikaSene Date: Sat, 6 Jul 2024 20:03:02 +0530 Subject: [PATCH 01/15] Add two new lines in the README file --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index cf6c47a..edc0550 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,7 @@ Follow these steps to create a Discord developer account. ### Step 1: Login to Discord developer page Discord Dev Page +

Visit [Discord developer portal](https://discord.com/login?redirect_to=%2Fdevelopers) by logging into your Discord account. From aeb592a74002ee17e8f75c096f6d650fc59de929 Mon Sep 17 00:00:00 2001 From: KamalikaSene Date: Sat, 6 Jul 2024 20:03:57 +0530 Subject: [PATCH 02/15] Add new lines to README --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index edc0550..448dca4 100644 --- a/README.md +++ b/README.md @@ -18,9 +18,9 @@ The Ballerina Discord connector offers APIs to connect and interact with the [Di Follow these steps to create a Discord developer account. ### Step 1: Login to Discord developer page - -Discord Dev Page

+Discord Dev Page +


Visit [Discord developer portal](https://discord.com/login?redirect_to=%2Fdevelopers) by logging into your Discord account. From e1a95da10602b39ebc03bc917abec26adb08e3ad Mon Sep 17 00:00:00 2001 From: KamalikaSene Date: Sat, 6 Jul 2024 20:05:32 +0530 Subject: [PATCH 03/15] Add several new lines to README --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 448dca4..506d61c 100644 --- a/README.md +++ b/README.md @@ -20,20 +20,20 @@ Follow these steps to create a Discord developer account. ### Step 1: Login to Discord developer page

Discord Dev Page -


+

Visit [Discord developer portal](https://discord.com/login?redirect_to=%2Fdevelopers) by logging into your Discord account. If you do not have a Discord account already, [create a new discord account](https://discord.com/login) by clicking on the `Register` hyperlink below the `Log In` button when opening the Discord developer page. Create Discord Account - +

Complete the account creation process by including the relavant information in the given fields. ### Step 2: Make a new Discord application - +

Make New Application - +

Once in the Discord developer portal is open, click on the `New Application` button as displayed above to start the process. ### Step 3: Name the Discord Application From 305c82f905e9833852c381807ab723e74c748a86 Mon Sep 17 00:00:00 2001 From: KamalikaSene Date: Sat, 6 Jul 2024 20:10:09 +0530 Subject: [PATCH 04/15] Add formatting to the images in README file --- README.md | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 506d61c..91b2615 100644 --- a/README.md +++ b/README.md @@ -26,27 +26,35 @@ Visit [Discord developer portal](https://discord.com/login?redirect_to=%2Fdevelo If you do not have a Discord account already, [create a new discord account](https://discord.com/login) by clicking on the `Register` hyperlink below the `Log In` button when opening the Discord developer page. +

Create Discord Account

-Complete the account creation process by including the relavant information in the given fields. + +Complete the account creation process by including the relevant information in the given fields. ### Step 2: Make a new Discord application

+ Make New Application +

+ Once in the Discord developer portal is open, click on the `New Application` button as displayed above to start the process. ### Step 3: Name the Discord Application - +

Name and Create the App +

+ 1. Proceed by giving the Discord Application a name and click on the terms of service. 2. Finally complete the naming process by clicking on the `next` button. ### Step 4: Obtain the Client ID and Client Secret - +

Obtain Client ID and Secret +

Under the `OAuth2` section found on the left-sided list, locate the Client's Information as shown on the screen. To implement the functionalities provided by Discord's API, you will need the Client ID and Client Secret. From 9dadbc7a1af7b016e4ba7f410fcc82f49e8ce50e Mon Sep 17 00:00:00 2001 From: KamalikaSene Date: Sat, 6 Jul 2024 20:17:55 +0530 Subject: [PATCH 05/15] Remove new lines from README --- README.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 91b2615..761de0b 100644 --- a/README.md +++ b/README.md @@ -18,43 +18,43 @@ The Ballerina Discord connector offers APIs to connect and interact with the [Di Follow these steps to create a Discord developer account. ### Step 1: Login to Discord developer page -

+
Discord Dev Page -

+
Visit [Discord developer portal](https://discord.com/login?redirect_to=%2Fdevelopers) by logging into your Discord account. If you do not have a Discord account already, [create a new discord account](https://discord.com/login) by clicking on the `Register` hyperlink below the `Log In` button when opening the Discord developer page. -

+
Create Discord Account -

+
Complete the account creation process by including the relevant information in the given fields. ### Step 2: Make a new Discord application -

+
Make New Application -

+
Once in the Discord developer portal is open, click on the `New Application` button as displayed above to start the process. ### Step 3: Name the Discord Application -

+
Name and Create the App -

+
1. Proceed by giving the Discord Application a name and click on the terms of service. 2. Finally complete the naming process by clicking on the `next` button. ### Step 4: Obtain the Client ID and Client Secret -

+
Obtain Client ID and Secret -

+
Under the `OAuth2` section found on the left-sided list, locate the Client's Information as shown on the screen. To implement the functionalities provided by Discord's API, you will need the Client ID and Client Secret. From 9b5a5257bf86ec37524ad140b486ea75c09716bb Mon Sep 17 00:00:00 2001 From: KamalikaSene Date: Sat, 6 Jul 2024 20:25:28 +0530 Subject: [PATCH 06/15] Add new lines to README.md, Module.md and Package.md --- README.md | 3 +++ ballerina/Module.md | 20 ++++++++++++++++---- ballerina/Package.md | 20 ++++++++++++++++---- 3 files changed, 35 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 761de0b..38a256b 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,7 @@ Follow these steps to create a Discord developer account. ### Step 1: Login to Discord developer page
Discord Dev Page +
Visit [Discord developer portal](https://discord.com/login?redirect_to=%2Fdevelopers) by logging into your Discord account. @@ -28,6 +29,7 @@ If you do not have a Discord account already, [create a new discord account](htt
Create Discord Account +
Complete the account creation process by including the relevant information in the given fields. @@ -54,6 +56,7 @@ Once in the Discord developer portal is open, click on the `New Application` but ### Step 4: Obtain the Client ID and Client Secret
Obtain Client ID and Secret +
Under the `OAuth2` section found on the left-sided list, locate the Client's Information as shown on the screen. To implement the functionalities provided by Discord's API, you will need the Client ID and Client Secret. diff --git a/ballerina/Module.md b/ballerina/Module.md index 5a7f210..b787561 100644 --- a/ballerina/Module.md +++ b/ballerina/Module.md @@ -9,35 +9,47 @@ The Ballerina Discord connector offers APIs to connect and interact with the [Di Follow these steps to create a Discord developer account. ### Step 1: Login to Discord developer page - +
Discord Dev Page +
+ Visit [Discord developer portal](https://discord.com/login?redirect_to=%2Fdevelopers) by logging into your Discord account. If you do not have a Discord account already, [create a new discord account](https://discord.com/login) by clicking on the `Register` hyperlink below the `Log In` button when opening the Discord developer page. +
Create Discord Account -Complete the account creation process by including the relavant information in the given fields. +
+ +Complete the account creation process by including the relevant information in the given fields. ### Step 2: Make a new Discord application +
Make New Application +
+ Once in the Discord developer portal is open, click on the `New Application` button as displayed above to start the process. ### Step 3: Name the Discord Application - +
Name and Create the App +
+ 1. Proceed by giving the Discord Application a name and click on the terms of service. 2. Finally complete the naming process by clicking on the `next` button. ### Step 4: Obtain the Client ID and Client Secret - +
Obtain Client ID and Secret +
+ Under the `OAuth2` section found on the left-sided list, locate the Client's Information as shown on the screen. To implement the functionalities provided by Discord's API, you will need the Client ID and Client Secret. ## Quickstart diff --git a/ballerina/Package.md b/ballerina/Package.md index 5a7f210..b787561 100644 --- a/ballerina/Package.md +++ b/ballerina/Package.md @@ -9,35 +9,47 @@ The Ballerina Discord connector offers APIs to connect and interact with the [Di Follow these steps to create a Discord developer account. ### Step 1: Login to Discord developer page - +
Discord Dev Page +
+ Visit [Discord developer portal](https://discord.com/login?redirect_to=%2Fdevelopers) by logging into your Discord account. If you do not have a Discord account already, [create a new discord account](https://discord.com/login) by clicking on the `Register` hyperlink below the `Log In` button when opening the Discord developer page. +
Create Discord Account -Complete the account creation process by including the relavant information in the given fields. +
+ +Complete the account creation process by including the relevant information in the given fields. ### Step 2: Make a new Discord application +
Make New Application +
+ Once in the Discord developer portal is open, click on the `New Application` button as displayed above to start the process. ### Step 3: Name the Discord Application - +
Name and Create the App +
+ 1. Proceed by giving the Discord Application a name and click on the terms of service. 2. Finally complete the naming process by clicking on the `next` button. ### Step 4: Obtain the Client ID and Client Secret - +
Obtain Client ID and Secret +
+ Under the `OAuth2` section found on the left-sided list, locate the Client's Information as shown on the screen. To implement the functionalities provided by Discord's API, you will need the Client ID and Client Secret. ## Quickstart From 4691d272dffeaafa454150af2195f6f723910e68 Mon Sep 17 00:00:00 2001 From: KamalikaSene Date: Sat, 6 Jul 2024 20:29:55 +0530 Subject: [PATCH 07/15] Replace guildId's datatype to const --- examples/automated-event-reminders/main.bal | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/automated-event-reminders/main.bal b/examples/automated-event-reminders/main.bal index 964ca8e..2ac44df 100644 --- a/examples/automated-event-reminders/main.bal +++ b/examples/automated-event-reminders/main.bal @@ -22,7 +22,7 @@ configurable string clientId = ?; configurable string clientSecret = ?; configurable string[] scopes = ?; -string guildId = "YOUR_GUILD_ID"; +const guildId = "YOUR_GUILD_ID"; # Represents a Discord Channel. public type Channel record { From 0f3a602fec93c14b94cee8d72c26ae648eda832e Mon Sep 17 00:00:00 2001 From: KamalikaSene Date: Sat, 6 Jul 2024 20:31:13 +0530 Subject: [PATCH 08/15] Remove string datatype from CHANNEL_ID and GUILD_ID --- examples/automated-role-assignment/main.bal | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/automated-role-assignment/main.bal b/examples/automated-role-assignment/main.bal index 8451706..07715bf 100644 --- a/examples/automated-role-assignment/main.bal +++ b/examples/automated-role-assignment/main.bal @@ -21,8 +21,8 @@ import ballerinax/discord; import ballerina/http; import ballerina/time; -const string CHANNEL_ID = "YOUR_CHANNEL_ID"; -const string GUILD_ID = "YOUR_GUILD_ID"; +const CHANNEL_ID = "YOUR_CHANNEL_ID"; +const GUILD_ID = "YOUR_GUILD_ID"; configurable string clientId = ?; configurable string clientSecret = ?; From e7c960a5a7a87301d71de247f1c6149d8fcd8b73 Mon Sep 17 00:00:00 2001 From: Kamalika Seneviratne <148671381+KamalikaSene@users.noreply.github.com> Date: Mon, 8 Jul 2024 09:17:54 +0530 Subject: [PATCH 09/15] Update automated-event-reminders/main.bal constant to uppercase Co-authored-by: Nipuna Ransinghe --- examples/automated-event-reminders/main.bal | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/automated-event-reminders/main.bal b/examples/automated-event-reminders/main.bal index 2ac44df..0a50dee 100644 --- a/examples/automated-event-reminders/main.bal +++ b/examples/automated-event-reminders/main.bal @@ -22,7 +22,7 @@ configurable string clientId = ?; configurable string clientSecret = ?; configurable string[] scopes = ?; -const guildId = "YOUR_GUILD_ID"; +const GUILD_ID = "YOUR_GUILD_ID"; # Represents a Discord Channel. public type Channel record { From 3d35fb215e5bdf4c275ddb4efce4c1194a4b7226 Mon Sep 17 00:00:00 2001 From: KamalikaSene Date: Mon, 8 Jul 2024 09:27:20 +0530 Subject: [PATCH 10/15] Remove break lines from documentation --- README.md | 18 +++--------------- ballerina/Module.md | 18 +++--------------- ballerina/Package.md | 18 +++--------------- 3 files changed, 9 insertions(+), 45 deletions(-) diff --git a/README.md b/README.md index 38a256b..a907b29 100644 --- a/README.md +++ b/README.md @@ -18,46 +18,34 @@ The Ballerina Discord connector offers APIs to connect and interact with the [Di Follow these steps to create a Discord developer account. ### Step 1: Login to Discord developer page -
-Discord Dev Page -
+Discord Dev Page Visit [Discord developer portal](https://discord.com/login?redirect_to=%2Fdevelopers) by logging into your Discord account. If you do not have a Discord account already, [create a new discord account](https://discord.com/login) by clicking on the `Register` hyperlink below the `Log In` button when opening the Discord developer page. -
Create Discord Account -
- Complete the account creation process by including the relevant information in the given fields. ### Step 2: Make a new Discord application -
Make New Application -
- Once in the Discord developer portal is open, click on the `New Application` button as displayed above to start the process. ### Step 3: Name the Discord Application -
-Name and Create the App -
+Name and Create the App 1. Proceed by giving the Discord Application a name and click on the terms of service. 2. Finally complete the naming process by clicking on the `next` button. ### Step 4: Obtain the Client ID and Client Secret -
-Obtain Client ID and Secret -
+Obtain Client ID and Secret Under the `OAuth2` section found on the left-sided list, locate the Client's Information as shown on the screen. To implement the functionalities provided by Discord's API, you will need the Client ID and Client Secret. diff --git a/ballerina/Module.md b/ballerina/Module.md index b787561..29a41db 100644 --- a/ballerina/Module.md +++ b/ballerina/Module.md @@ -9,46 +9,34 @@ The Ballerina Discord connector offers APIs to connect and interact with the [Di Follow these steps to create a Discord developer account. ### Step 1: Login to Discord developer page -
-Discord Dev Page -
+Discord Dev Page Visit [Discord developer portal](https://discord.com/login?redirect_to=%2Fdevelopers) by logging into your Discord account. If you do not have a Discord account already, [create a new discord account](https://discord.com/login) by clicking on the `Register` hyperlink below the `Log In` button when opening the Discord developer page. -
Create Discord Account -
- Complete the account creation process by including the relevant information in the given fields. ### Step 2: Make a new Discord application -
Make New Application -
- Once in the Discord developer portal is open, click on the `New Application` button as displayed above to start the process. ### Step 3: Name the Discord Application -
-Name and Create the App -
+Name and Create the App 1. Proceed by giving the Discord Application a name and click on the terms of service. 2. Finally complete the naming process by clicking on the `next` button. ### Step 4: Obtain the Client ID and Client Secret -
-Obtain Client ID and Secret -
+Obtain Client ID and Secret Under the `OAuth2` section found on the left-sided list, locate the Client's Information as shown on the screen. To implement the functionalities provided by Discord's API, you will need the Client ID and Client Secret. diff --git a/ballerina/Package.md b/ballerina/Package.md index b787561..29a41db 100644 --- a/ballerina/Package.md +++ b/ballerina/Package.md @@ -9,46 +9,34 @@ The Ballerina Discord connector offers APIs to connect and interact with the [Di Follow these steps to create a Discord developer account. ### Step 1: Login to Discord developer page -
-Discord Dev Page -
+Discord Dev Page Visit [Discord developer portal](https://discord.com/login?redirect_to=%2Fdevelopers) by logging into your Discord account. If you do not have a Discord account already, [create a new discord account](https://discord.com/login) by clicking on the `Register` hyperlink below the `Log In` button when opening the Discord developer page. -
Create Discord Account -
- Complete the account creation process by including the relevant information in the given fields. ### Step 2: Make a new Discord application -
Make New Application -
- Once in the Discord developer portal is open, click on the `New Application` button as displayed above to start the process. ### Step 3: Name the Discord Application -
-Name and Create the App -
+Name and Create the App 1. Proceed by giving the Discord Application a name and click on the terms of service. 2. Finally complete the naming process by clicking on the `next` button. ### Step 4: Obtain the Client ID and Client Secret -
-Obtain Client ID and Secret -
+Obtain Client ID and Secret Under the `OAuth2` section found on the left-sided list, locate the Client's Information as shown on the screen. To implement the functionalities provided by Discord's API, you will need the Client ID and Client Secret. From 02d630da4c7b651429262821295cb85b577deab7 Mon Sep 17 00:00:00 2001 From: KamalikaSene Date: Mon, 8 Jul 2024 10:28:39 +0530 Subject: [PATCH 11/15] Update method call using const variables --- examples/automated-event-reminders/main.bal | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/automated-event-reminders/main.bal b/examples/automated-event-reminders/main.bal index 0a50dee..5c03a1d 100644 --- a/examples/automated-event-reminders/main.bal +++ b/examples/automated-event-reminders/main.bal @@ -62,7 +62,7 @@ public function main() returns error? { } }; - Event|error eventResponse = discord->/guilds/[guildId]/scheduled\-events.post(payload); + Event|error eventResponse = discord->/guilds/[GUILD_ID]/scheduled\-events.post(payload); if eventResponse is error { log:printError("Error creating the scheduled event: ", eventResponse); return; @@ -83,7 +83,7 @@ class EventReminderJob { } public function execute() { - anydata[]|error channelsResponse = discord->/guilds/[guildId]/channels(); + anydata[]|error channelsResponse = discord->/guilds/[GUILD_ID]/channels(); if channelsResponse is error { log:printError("Error getting the channels: ", channelsResponse); return; From d58fb8d7386e749a347b5df33dd0bcd48fa1255a Mon Sep 17 00:00:00 2001 From: KamalikaSene Date: Mon, 8 Jul 2024 10:55:53 +0530 Subject: [PATCH 12/15] Add tab space for formatting images in the documentation --- README.md | 10 +++++----- ballerina/Module.md | 10 +++++----- ballerina/Package.md | 10 +++++----- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index a907b29..6e3a7f7 100644 --- a/README.md +++ b/README.md @@ -19,25 +19,25 @@ Follow these steps to create a Discord developer account. ### Step 1: Login to Discord developer page -Discord Dev Page + Discord Dev Page Visit [Discord developer portal](https://discord.com/login?redirect_to=%2Fdevelopers) by logging into your Discord account. If you do not have a Discord account already, [create a new discord account](https://discord.com/login) by clicking on the `Register` hyperlink below the `Log In` button when opening the Discord developer page. -Create Discord Account + Create Discord Account Complete the account creation process by including the relevant information in the given fields. ### Step 2: Make a new Discord application -Make New Application + Make New Application Once in the Discord developer portal is open, click on the `New Application` button as displayed above to start the process. ### Step 3: Name the Discord Application -Name and Create the App + Name and Create the App 1. Proceed by giving the Discord Application a name and click on the terms of service. @@ -45,7 +45,7 @@ Once in the Discord developer portal is open, click on the `New Application` but ### Step 4: Obtain the Client ID and Client Secret -Obtain Client ID and Secret + Obtain Client ID and Secret Under the `OAuth2` section found on the left-sided list, locate the Client's Information as shown on the screen. To implement the functionalities provided by Discord's API, you will need the Client ID and Client Secret. diff --git a/ballerina/Module.md b/ballerina/Module.md index 29a41db..7dc8f7f 100644 --- a/ballerina/Module.md +++ b/ballerina/Module.md @@ -10,25 +10,25 @@ Follow these steps to create a Discord developer account. ### Step 1: Login to Discord developer page -Discord Dev Page + Discord Dev Page Visit [Discord developer portal](https://discord.com/login?redirect_to=%2Fdevelopers) by logging into your Discord account. If you do not have a Discord account already, [create a new discord account](https://discord.com/login) by clicking on the `Register` hyperlink below the `Log In` button when opening the Discord developer page. -Create Discord Account + Create Discord Account Complete the account creation process by including the relevant information in the given fields. ### Step 2: Make a new Discord application -Make New Application + Make New Application Once in the Discord developer portal is open, click on the `New Application` button as displayed above to start the process. ### Step 3: Name the Discord Application -Name and Create the App + Name and Create the App 1. Proceed by giving the Discord Application a name and click on the terms of service. @@ -36,7 +36,7 @@ Once in the Discord developer portal is open, click on the `New Application` but ### Step 4: Obtain the Client ID and Client Secret -Obtain Client ID and Secret + Obtain Client ID and Secret Under the `OAuth2` section found on the left-sided list, locate the Client's Information as shown on the screen. To implement the functionalities provided by Discord's API, you will need the Client ID and Client Secret. diff --git a/ballerina/Package.md b/ballerina/Package.md index 29a41db..7dc8f7f 100644 --- a/ballerina/Package.md +++ b/ballerina/Package.md @@ -10,25 +10,25 @@ Follow these steps to create a Discord developer account. ### Step 1: Login to Discord developer page -Discord Dev Page + Discord Dev Page Visit [Discord developer portal](https://discord.com/login?redirect_to=%2Fdevelopers) by logging into your Discord account. If you do not have a Discord account already, [create a new discord account](https://discord.com/login) by clicking on the `Register` hyperlink below the `Log In` button when opening the Discord developer page. -Create Discord Account + Create Discord Account Complete the account creation process by including the relevant information in the given fields. ### Step 2: Make a new Discord application -Make New Application + Make New Application Once in the Discord developer portal is open, click on the `New Application` button as displayed above to start the process. ### Step 3: Name the Discord Application -Name and Create the App + Name and Create the App 1. Proceed by giving the Discord Application a name and click on the terms of service. @@ -36,7 +36,7 @@ Once in the Discord developer portal is open, click on the `New Application` but ### Step 4: Obtain the Client ID and Client Secret -Obtain Client ID and Secret + Obtain Client ID and Secret Under the `OAuth2` section found on the left-sided list, locate the Client's Information as shown on the screen. To implement the functionalities provided by Discord's API, you will need the Client ID and Client Secret. From b9492a936d734d47a39327cfa622046b74488cb0 Mon Sep 17 00:00:00 2001 From: KamalikaSene Date: Mon, 8 Jul 2024 11:14:04 +0530 Subject: [PATCH 13/15] Add indentation to the images and text in documentation --- README.md | 22 +++++++++++----------- ballerina/Module.md | 22 +++++++++++----------- ballerina/Package.md | 22 +++++++++++----------- 3 files changed, 33 insertions(+), 33 deletions(-) diff --git a/README.md b/README.md index 6e3a7f7..fc4d330 100644 --- a/README.md +++ b/README.md @@ -19,35 +19,35 @@ Follow these steps to create a Discord developer account. ### Step 1: Login to Discord developer page - Discord Dev Page +1. Visit [Discord developer portal](https://discord.com/login?redirect_to=%2Fdevelopers) by logging into your Discord account. -Visit [Discord developer portal](https://discord.com/login?redirect_to=%2Fdevelopers) by logging into your Discord account. + Discord Dev Page -If you do not have a Discord account already, [create a new discord account](https://discord.com/login) by clicking on the `Register` hyperlink below the `Log In` button when opening the Discord developer page. +2. If you do not have a Discord account already, [create a new discord account](https://discord.com/login) by clicking on the `Register` hyperlink below the `Log In` button when opening the Discord developer page. - Create Discord Account + Create Discord Account -Complete the account creation process by including the relevant information in the given fields. +3. Complete the account creation process by including the relevant information in the given fields. ### Step 2: Make a new Discord application - Make New Application +- Once in the Discord developer portal is open, click on the `New Application` button as displayed above to start the process. -Once in the Discord developer portal is open, click on the `New Application` button as displayed above to start the process. + Make New Application ### Step 3: Name the Discord Application - Name and Create the App - 1. Proceed by giving the Discord Application a name and click on the terms of service. + Name and Create the App + 2. Finally complete the naming process by clicking on the `next` button. ### Step 4: Obtain the Client ID and Client Secret - Obtain Client ID and Secret +- Under the `OAuth2` section found on the left-sided list, locate the Client's Information as shown on the screen. To implement the functionalities provided by Discord's API, you will need the Client ID and Client Secret. -Under the `OAuth2` section found on the left-sided list, locate the Client's Information as shown on the screen. To implement the functionalities provided by Discord's API, you will need the Client ID and Client Secret. + Obtain Client ID and Secret ## Quickstart diff --git a/ballerina/Module.md b/ballerina/Module.md index 7dc8f7f..3653946 100644 --- a/ballerina/Module.md +++ b/ballerina/Module.md @@ -10,35 +10,35 @@ Follow these steps to create a Discord developer account. ### Step 1: Login to Discord developer page - Discord Dev Page +1. Visit [Discord developer portal](https://discord.com/login?redirect_to=%2Fdevelopers) by logging into your Discord account. -Visit [Discord developer portal](https://discord.com/login?redirect_to=%2Fdevelopers) by logging into your Discord account. + Discord Dev Page -If you do not have a Discord account already, [create a new discord account](https://discord.com/login) by clicking on the `Register` hyperlink below the `Log In` button when opening the Discord developer page. +2. If you do not have a Discord account already, [create a new discord account](https://discord.com/login) by clicking on the `Register` hyperlink below the `Log In` button when opening the Discord developer page. - Create Discord Account + Create Discord Account -Complete the account creation process by including the relevant information in the given fields. +3. Complete the account creation process by including the relevant information in the given fields. ### Step 2: Make a new Discord application - Make New Application +- Once in the Discord developer portal is open, click on the `New Application` button as displayed above to start the process. -Once in the Discord developer portal is open, click on the `New Application` button as displayed above to start the process. + Make New Application ### Step 3: Name the Discord Application - Name and Create the App - 1. Proceed by giving the Discord Application a name and click on the terms of service. + Name and Create the App + 2. Finally complete the naming process by clicking on the `next` button. ### Step 4: Obtain the Client ID and Client Secret - Obtain Client ID and Secret +- Under the `OAuth2` section found on the left-sided list, locate the Client's Information as shown on the screen. To implement the functionalities provided by Discord's API, you will need the Client ID and Client Secret. -Under the `OAuth2` section found on the left-sided list, locate the Client's Information as shown on the screen. To implement the functionalities provided by Discord's API, you will need the Client ID and Client Secret. + Obtain Client ID and Secret ## Quickstart diff --git a/ballerina/Package.md b/ballerina/Package.md index 7dc8f7f..3653946 100644 --- a/ballerina/Package.md +++ b/ballerina/Package.md @@ -10,35 +10,35 @@ Follow these steps to create a Discord developer account. ### Step 1: Login to Discord developer page - Discord Dev Page +1. Visit [Discord developer portal](https://discord.com/login?redirect_to=%2Fdevelopers) by logging into your Discord account. -Visit [Discord developer portal](https://discord.com/login?redirect_to=%2Fdevelopers) by logging into your Discord account. + Discord Dev Page -If you do not have a Discord account already, [create a new discord account](https://discord.com/login) by clicking on the `Register` hyperlink below the `Log In` button when opening the Discord developer page. +2. If you do not have a Discord account already, [create a new discord account](https://discord.com/login) by clicking on the `Register` hyperlink below the `Log In` button when opening the Discord developer page. - Create Discord Account + Create Discord Account -Complete the account creation process by including the relevant information in the given fields. +3. Complete the account creation process by including the relevant information in the given fields. ### Step 2: Make a new Discord application - Make New Application +- Once in the Discord developer portal is open, click on the `New Application` button as displayed above to start the process. -Once in the Discord developer portal is open, click on the `New Application` button as displayed above to start the process. + Make New Application ### Step 3: Name the Discord Application - Name and Create the App - 1. Proceed by giving the Discord Application a name and click on the terms of service. + Name and Create the App + 2. Finally complete the naming process by clicking on the `next` button. ### Step 4: Obtain the Client ID and Client Secret - Obtain Client ID and Secret +- Under the `OAuth2` section found on the left-sided list, locate the Client's Information as shown on the screen. To implement the functionalities provided by Discord's API, you will need the Client ID and Client Secret. -Under the `OAuth2` section found on the left-sided list, locate the Client's Information as shown on the screen. To implement the functionalities provided by Discord's API, you will need the Client ID and Client Secret. + Obtain Client ID and Secret ## Quickstart From 020310575c2436ed3ea48ccf31df1c42f43f6ffc Mon Sep 17 00:00:00 2001 From: KamalikaSene Date: Mon, 8 Jul 2024 11:22:05 +0530 Subject: [PATCH 14/15] Add numbering to step 2 and 4 in documentation --- README.md | 4 ++-- ballerina/Module.md | 4 ++-- ballerina/Package.md | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index fc4d330..db33864 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ Follow these steps to create a Discord developer account. ### Step 2: Make a new Discord application -- Once in the Discord developer portal is open, click on the `New Application` button as displayed above to start the process. +1. Once in the Discord developer portal is open, click on the `New Application` button as displayed above to start the process. Make New Application @@ -45,7 +45,7 @@ Follow these steps to create a Discord developer account. ### Step 4: Obtain the Client ID and Client Secret -- Under the `OAuth2` section found on the left-sided list, locate the Client's Information as shown on the screen. To implement the functionalities provided by Discord's API, you will need the Client ID and Client Secret. +1. Under the `OAuth2` section found on the left-sided list, locate the Client's Information as shown on the screen. To implement the functionalities provided by Discord's API, you will need the Client ID and Client Secret. Obtain Client ID and Secret diff --git a/ballerina/Module.md b/ballerina/Module.md index 3653946..b83524f 100644 --- a/ballerina/Module.md +++ b/ballerina/Module.md @@ -22,7 +22,7 @@ Follow these steps to create a Discord developer account. ### Step 2: Make a new Discord application -- Once in the Discord developer portal is open, click on the `New Application` button as displayed above to start the process. +1. Once in the Discord developer portal is open, click on the `New Application` button as displayed above to start the process. Make New Application @@ -36,7 +36,7 @@ Follow these steps to create a Discord developer account. ### Step 4: Obtain the Client ID and Client Secret -- Under the `OAuth2` section found on the left-sided list, locate the Client's Information as shown on the screen. To implement the functionalities provided by Discord's API, you will need the Client ID and Client Secret. +1. Under the `OAuth2` section found on the left-sided list, locate the Client's Information as shown on the screen. To implement the functionalities provided by Discord's API, you will need the Client ID and Client Secret. Obtain Client ID and Secret diff --git a/ballerina/Package.md b/ballerina/Package.md index 3653946..b83524f 100644 --- a/ballerina/Package.md +++ b/ballerina/Package.md @@ -22,7 +22,7 @@ Follow these steps to create a Discord developer account. ### Step 2: Make a new Discord application -- Once in the Discord developer portal is open, click on the `New Application` button as displayed above to start the process. +1. Once in the Discord developer portal is open, click on the `New Application` button as displayed above to start the process. Make New Application @@ -36,7 +36,7 @@ Follow these steps to create a Discord developer account. ### Step 4: Obtain the Client ID and Client Secret -- Under the `OAuth2` section found on the left-sided list, locate the Client's Information as shown on the screen. To implement the functionalities provided by Discord's API, you will need the Client ID and Client Secret. +1. Under the `OAuth2` section found on the left-sided list, locate the Client's Information as shown on the screen. To implement the functionalities provided by Discord's API, you will need the Client ID and Client Secret. Obtain Client ID and Secret From 34705ca999611b260716695aeafde411167ae10f Mon Sep 17 00:00:00 2001 From: KamalikaSene Date: Mon, 8 Jul 2024 11:45:45 +0530 Subject: [PATCH 15/15] Update gradle version to 1.0.0 --- gradle.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index ce76b1d..72a0096 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,6 +1,6 @@ org.gradle.caching=true group=io.ballerina.lib -version=0.1.0-SNAPSHOT +version=1.0.0-SNAPSHOT checkstylePluginVersion=10.12.0 spotbugsPluginVersion=5.0.14