diff --git a/README.md b/README.md
index cf6c47a..db33864 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
-
+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.
+
-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.
-
+
-Complete the account creation process by including the relavant 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
-
+1. 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.
+
### Step 3: Name the Discord Application
-
-
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
-
+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.
-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/Module.md b/ballerina/Module.md
index 5a7f210..b83524f 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
-
+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.
+
-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.
-
+
-Complete the account creation process by including the relavant 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
-
+1. 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.
+
### Step 3: Name the Discord Application
-
-
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
-
+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.
-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..b83524f 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
-
+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.
+
-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.
-
+
-Complete the account creation process by including the relavant 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
-
+1. 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.
+
### Step 3: Name the Discord Application
-
-
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
-
+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.
-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/examples/automated-event-reminders/main.bal b/examples/automated-event-reminders/main.bal
index 964ca8e..5c03a1d 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 GUILD_ID = "YOUR_GUILD_ID";
# Represents a Discord Channel.
public type Channel record {
@@ -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;
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 = ?;
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