#care to show your code for that

1 messages · Page 1 of 1 (latest)

glossy stump
#

@coarse delta

coarse delta
#

definitely very interesting
nothing looks out of the ordinary other than the second send not having any async handling, but it's not as if that should be triggering an error like that

glossy stump
#

ik

#

its a pain in my behind rn lol.

coarse delta
#

are you sure that error is being triggered by this section of code?

glossy stump
#

ctrl clicked the Object.run file path

#

F:\CloneWarsBot\commands\basic\rules.js:84:87

#

that line

#

specificallly gamRules_Embed

coarse delta
#

genuinely no idea

glossy stump
#

is there a way around it? OwO?

coarse delta
#

the only thing I can think of is if the process is running outdated code for whatever reason (file not saved, didn't restart etc.) ¯_(ツ)_/¯

glossy stump
#

Nah it isn't.. this is like headache rn lol

wicked belfry
#

I found the "issue"

glossy stump
#

hm?

wicked belfry
#

JavaScript is a very weird language. You have to create gameRules_Embed before rulesMiscellaneous_Embed

glossy stump
#

Ahh

wicked belfry
#

just place it above rulesMiscellaneous_Embed

#

and that's it

coarse delta
#

I mean that definitely shouldn't be an issue, but if it works

#

your code works fine on my end as is

glossy stump
#

emoji failure now

coarse delta
#

alright that's the next issue

#

that's a unicode emoji right?

glossy stump
#

the emoji is on my bots rich pressence and in the server

#

its green_check_mark_1 so idk OwO

coarse delta
#

is it this one? ✅

glossy stump
#

idk what unicode means im a little tired

#

no it isnt

#

its a custom one

coarse delta
#

oh then you need an EmojiIdentifierResolvable, not just the name

glossy stump
#

How do I get that & what is that-

mighty jettyBOT
coarse delta
#

tldr you need an id too

glossy stump
#

Oh

#

its just the \

coarse delta
#

ya

glossy stump
#

this ya

coarse delta
#

o I see

glossy stump
#

or err

wicked belfry
glossy stump
coarse delta
wicked belfry
#

I know it shouldn't be an issue, and I thought he was crazy, but I got the same error for some reason

glossy stump
#

I tink

coarse delta
glossy stump
#

noe 16.10 i lied

coarse delta
#

tested on 16.10.0
definitely still works
still not really sure why switching the order of the variable definitions solved it

wicked belfry
#

I'm puzzled as well

#

maybe something to do with D.js version?

#

i'm running the latest one

coarse delta
#

I too am on 13.7.0

#

¯_(ツ)_/¯

#

no point in worrying about it until something else has an issue tho

glossy stump
#

yay it works now :D

coarse delta
#

👍

glossy stump
#

ty guys ^-^