Skip to content

Commit

Permalink
Update method call using const variables
Browse files Browse the repository at this point in the history
  • Loading branch information
KamalikaSene committed Jul 8, 2024
1 parent 3d35fb2 commit 02d630d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/automated-event-reminders/main.bal
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 02d630d

Please sign in to comment.