Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed client id environment variable name #4

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions client/utils/discordSdk.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ let discordSdk;

const initiateDiscordSDK = async () => {
if (isEmbedded) {
discordSdk = new DiscordSDK(import.meta.env.VITE_CLIENT_ID);
discordSdk = new DiscordSDK(import.meta.env.VITE_DISCORD_CLIENT_ID);
} else {
// We're using session storage for user_id, guild_id, and channel_id
// This way the user/guild/channel will be maintained until the tab is closed, even if you refresh
Expand All @@ -20,7 +20,7 @@ const initiateDiscordSDK = async () => {
const mockChannelId = getOverrideOrRandomSessionValue("channel_id");

discordSdk = new DiscordSDKMock(
import.meta.env.VITE_CLIENT_ID,
import.meta.env.VITE_DISCORD_CLIENT_ID,
mockGuildId,
mockChannelId
);
Expand Down