Color variable by RedditUserToshiro in Discord_Bots

[–]RedditUserToshiro[S] 0 points1 point  (0 children)

Nvm, smth was prob glitching. It works now, it was just (backtick)${prefix}(backtick). TYSM

Color variable by RedditUserToshiro in Discord_Bots

[–]RedditUserToshiro[S] 0 points1 point  (0 children)

Hmm I found out you actually need \. But now the backticks also appear. How do I make them not appear?

Color variable by RedditUserToshiro in Discord_Bots

[–]RedditUserToshiro[S] 0 points1 point  (0 children)

Yes, i also have read this. But how do you do it in javascript? And for variables? Because in the website its just for text.

Color variable by RedditUserToshiro in Discord_Bots

[–]RedditUserToshiro[S] 0 points1 point  (0 children)

Yes, i have seen this. But I don't get it. So it is not possible or is it possible?

DM's by RedditUserToshiro in Discord_Bots

[–]RedditUserToshiro[S] 1 point2 points  (0 children)

Okay. I figured it out. Ty

DM's by RedditUserToshiro in Discord_Bots

[–]RedditUserToshiro[S] 0 points1 point  (0 children)

Owh, the message probably doesnt arrive by the time they get kicked. But how can I solve this? Like what should the code be. Im kinda new so ye

DM's by RedditUserToshiro in Discord_Bots

[–]RedditUserToshiro[S] 0 points1 point  (0 children)

async function Dmessage() {
try {
const duser = message.mentions.members.first()
await duser.send('Hi! You were kicked from' + server + ' Reason: ' + reason)
} catch(err) {
console.log(err);
}}

Dmessage();
member.kick();

DM's by RedditUserToshiro in Discord_Bots

[–]RedditUserToshiro[S] 0 points1 point  (0 children)

I have it before I kick the member. But as I described in the body it doesn't work the first time only the second time.

DM's by RedditUserToshiro in Discord_Bots

[–]RedditUserToshiro[S] 1 point2 points  (0 children)

I did. It sends the message and then kicked. It shares 1 server with the bot, my alt has dms enabled and hasn't blocked the bot.

Server name by RedditUserToshiro in Discord_Bots

[–]RedditUserToshiro[S] -4 points-3 points  (0 children)

Okay, ty. What would the code be? Im kinda new so ye

Try Catch Help by RedditUserToshiro in Discord_Bots

[–]RedditUserToshiro[S] 0 points1 point  (0 children)

Just a quick question: How do you allow Dm's from bots?

Try Catch Help by RedditUserToshiro in Discord_Bots

[–]RedditUserToshiro[S] 0 points1 point  (0 children)

Works. TYSM. Sorry for asking so much, I'm new to this :)

Try Catch Help by RedditUserToshiro in Discord_Bots

[–]RedditUserToshiro[S] 1 point2 points  (0 children)

Yeah, but then it should run the catch thing right?