#I got this ``TypeError Cannot read

1 messages ยท Page 1 of 1 (latest)

zinc breach
#

send your code

thorn finch
#

I do this for the moment

#

I'm doing everything raw right now

#

You need my index.js ?

zinc breach
#

try to do this channel = bot.channels.cache.get("id")

thorn finch
#

That's work

#

Thank you ๐Ÿ™‚

#

But now I want to take the content of the message before edit him

zinc breach
#

yw

thorn finch
#

Just need to stock in anther place ?

zinc breach
#

then() have the message you retrieved you can access its content

thorn finch
#

Okay thank you

zinc breach
#

๐Ÿ‘Œ

thorn finch
#

I do this

#

But i got the id of the message + Hello

#

Like this

#

And in this case, before I have Hello and after command I want Hello Hello

zinc breach
#

you have all these properties and the one you want is content

thorn finch
#

That's work great

#

Big thanks to you โค๏ธ

#

Have a nice day

zinc breach
#

good luck

thorn finch
#

Eventually I have a last question: Actually I have this if (message.author.id == "id" || message.author.id == "id") {

#

For authorize 2 members to do a command

#

But I want authorize a role

#

I try message.author.roles.id == "id_role" but don't work

zinc breach
#

message.author.roles.cache.some(role => role.id === 'id')

thorn finch
#

I have a unexpected token '{'

zinc breach
#

look att your syntax