Bug fix with verify command
This commit is contained in:
@@ -118,7 +118,7 @@ export = {
|
|||||||
],
|
],
|
||||||
})
|
})
|
||||||
|
|
||||||
const linkedDiscord = player.socialMedia.links.DISCORD || null
|
const linkedDiscord = player?.socialMedia?.links?.DISCORD || null
|
||||||
if (!linkedDiscord) {
|
if (!linkedDiscord) {
|
||||||
interaction.editReply({
|
interaction.editReply({
|
||||||
embeds: [
|
embeds: [
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ export interface PlayerData {
|
|||||||
userLanguage: string
|
userLanguage: string
|
||||||
easter2020Cooldowns2: Easter2020Cooldowns2
|
easter2020Cooldowns2: Easter2020Cooldowns2
|
||||||
rankPlusColor: string
|
rankPlusColor: string
|
||||||
socialMedia: SocialMedia
|
socialMedia?: SocialMedia
|
||||||
achievementTotem: AchievementTotem
|
achievementTotem: AchievementTotem
|
||||||
claimed_potato_talisman: number
|
claimed_potato_talisman: number
|
||||||
summer2020Cooldowns: Summer2020Cooldowns
|
summer2020Cooldowns: Summer2020Cooldowns
|
||||||
@@ -11346,11 +11346,11 @@ export interface Easter2020Cooldowns2 {
|
|||||||
export interface SocialMedia {
|
export interface SocialMedia {
|
||||||
prompt: boolean
|
prompt: boolean
|
||||||
TWITCH: string
|
TWITCH: string
|
||||||
links: Links
|
links?: Links
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Links {
|
export interface Links {
|
||||||
DISCORD: string
|
DISCORD?: string
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface AchievementTotem {
|
export interface AchievementTotem {
|
||||||
|
|||||||
Reference in New Issue
Block a user