#development

1 messages Β· Page 1172 of 1

acoustic bridge
#

It says 'NoneType' object has no attribute 'channel' as error

delicate shore
#

😭

cinder sandal
#

i want to make a reason thing for my warn command, the reason incluxdes the user mention, how do i remove it?
@cinder sandal still unanswered

sudden geyser
#

yeah because the member is not in a voice channel

delicate shore
#

Send ur code

sudden geyser
#

So check it before

cinder sandal
#

ok

acoustic bridge
#

Yep it worked if I put it before the channel definition

#

Thanks

cinder sandal
#
 if (command === ('warn')) {
       const user = message.mentions.users.first();
       if(!message.mentions.members.first()) return message.reply('You must tag a user.');
       const WarnEmbed = new Discord.MessageEmbed()
       .setTitle('Warned Successfully')
    .setDescription(`${user} Was Warned.`)
    .addField('Reason', `${args.join(' ')}`)
       .setTimestamp()

       message.channel.send(WarnEmbed)
   
   }```
#

It shows the user mention is the Reason how do it remove it?

sudden geyser
#

You should exclude the first argument by using .slice(1) on args

#

Also don't check for message.mentions.users.first() as it won't check for the first argument

cinder sandal
#

then how it would check?

sudden geyser
#

You'd need to parse it manually.

#

Aka grab args[0] and try searching for a guild member with that.

cinder sandal
#

i grabbed the message.mention.users.first() from the kick/ban command.

#

so should i stop using message.mentions.users.first()?

delicate shore
#

should i let it turn on full night

#

it is taking so much fucking time

#

one hour ago it said 21 mib left

#

and even now 19

cinder sandal
#

top worst hosting services

  • Heroku
  • Glitch (the most bad)
slender thistle
#

If you read what Glitch is for

misty sigil
#

meh heroku's ok i suppose

cinder sandal
#

i use heroku

delicate shore
#

who asked tho

slender thistle
#

it's not intended for hosting Discord bots

cinder sandal
#

that's why glitch is bad for discord bots ^

slender thistle
#

??????

#

now that's the better way to put it

#

Then again, most free services won't give you the best experience hosting a Discord bot

sudden geyser
#

so should i stop using message.mentions.users.first()?
@cinder sandal the reason I recommend you don't use it is because it's not reliable in all case scenarios, and because you can do more than just look for a mention. For example, if I write ?ban They were rude to @Lite#0001, it would grab @Lite#0001 as the target and punish them. That's not ideal and it's not valid syntax usually unless that's what you're aiming for (?ban Target> <Reason> preferrable)

It's easier to use message.mentions.users.first(), but it's not always ideal. If you wanted to use something else, I'd make a utility method like function findMember(guild, input). If you don't want to worry about it for now, you could stick with the mentions check first.

safe kelp
#

I want my bot to log message delete etc

sudden geyser
#

Ask away

flat pelican
#

I agree with Lite

#

For the long message above

slender thistle
safe kelp
#

But how can I make a command by which bot will send the logs to the scelected channel

sudden geyser
#

You'd need to save those logs

safe kelp
#

Mean

#

I can't do something like find_channel

cinder sandal
#

i don't use a command handler, is that weird?

safe kelp
#

Well I also don't use

sudden geyser
#

If you have a lot of commands it is

cinder sandal
#

my command handlers doesn't work because i host on heroku, F

safe kelp
#

my command handlers doesn't work because i host on heroku, F
@cinder sandal

Exact same

drifting wedge
#

How do I send like success message?

cinder sandal
#

@cinder sandal

Exact same
@safe kelp 😦 F i have many command that's a pain

safe kelp
#

Lol

#

Shivaco will ans me

#

Ik

sudden geyser
#

How do I send like success message?
@drifting wedge what exactly is a "success message" to you

zenith terrace
#

message.channel.send("Success!") mmLul

slender thistle
#

The way I do it is following:

On event, check if channel is selected. Selected channel can be stored in a dictionary attached to your client where key is guild ID and value is channel ID. (something like client.user_channels)

When a command to change the channel is executed, I do client.user_channels[message.guild.id] = channel.id where channel is a TextChannel object. (Preferably use a database and write to it as well.)

Now, when an event occurs, use .get on client.user_channels (e.g. client.user_channels.get(guild_id)) and check if returned result is None.

If result from .get is None, I just use return. If there's actual data, I use client.get_channel to get the channel, make sure it doesn't return None, and send a message.

cinder sandal
#

how can you make command handlers, if u host on heroku?

oak patio
#

whats a bot that can change name

slender thistle
#

Your host doesn't matter. A command handler is simply a snippet of code that supports dynamic edits of commands either by rotating through files in a folder or file contents

cinder sandal
#

my code basically ignores it, and doesn't run the command like it doesn't exist (no errors)

slender thistle
#

Now, as to how to make one in JS... I'm out, since I don't know JS. :p

safe kelp
#

@slender thistle well I don't understood properly

oak patio
#

whats a bot that can change name

zenith terrace
#

what

sudden geyser
#

change name as in nickname?

safe kelp
#

You described properly

oak patio
#

yes

slender thistle
#

Which part is unclear for you?

safe kelp
#

Everything ^_^

#

Lol f me

oak patio
#

ye

safe kelp
#

I am a starter that's why

oak patio
#

Me to

#

I just Joined server

slender thistle
#

Do you use the commands extension or on_message for commands?

safe kelp
#

No

restive furnace
#

which

slender thistle
#

that wasn't a yes/no question btw

safe kelp
#

@client.command()
async def hi(ctx):
await ctx.send ('hi')

#

This type

slender thistle
#

commands extension, then.

safe kelp
#

Yeah whatever it is

cinder sandal
#

how to check for permission in discord.js and stop the command to be executed and say a message?

safe kelp
#

YouTuber called it class decorator method

slender thistle
#

@client.command() being the decorator

safe kelp
#

Øh

cinder sandal
#

does discord.js and discord.py have a diffrence? (what can this one do and what can this one do)

slender thistle
#

one is for JS, the other is for Python

#

both have slight differences in naming methods mostly

cinder sandal
#

but do they have diffrences in what they can do?

slender thistle
#

and different ways of utilizing properties

#

Not really, both are supposed to be full wrappers for Discord API

#

Pseudocode for your case:

@client.command()
async def setchannel(ctx, channel: discord.TextChannel):
    client.user_channels[ctx.guild.id] = channel.id
    # reply to the user

@client.event
async def on_message_delete(message):
    # `message` is a discord.Message object, we can get its .content property.
    content = message.content
    # generate an embed probably here

    # now we get the channel
    channel = client.user_channels.get(message.guild.id)
    # check if channel was received
    if channel:
        # send the message
    else:
        # probably return or ignore the "else" branch if it's not needed
safe kelp
#

Okay

cinder sandal
#

vs code shows me errors that doesn't even exist/don't affect the command/bot
like Expression expected.
vs code is weird

slender thistle
#

Not really

#
// do stuff here
let a = 10;
a; // this line should say "Expression expected"
``` it happens because your statement doesn't do anything
cinder sandal
#

fixes while adding an {
}

wanton iron
#

Hello my music bot was working very well but when I came back I checked the logs and I got this error (which is repeated every time I tried to play a music), I restarted it and it works fine but what could have triggered that?

sudden geyser
#

What likely happened is no videos were found

#

So you tried to do undefined.url

wanton iron
#

y but how is it possible ?

#

youtube always find smth right ?

sudden geyser
#

not always

wanton iron
#

and i have a try and catch block if not

restive furnace
#

search like ksnvdbdksbbsbxj from youtube, and boom no results

sudden geyser
#

You're re-throwing the error in the catch block

wanton iron
#

and what should I do?

#

use it as a nothing found ?

#

the thing that worry me is that every normal music after this throw that error

sudden geyser
#

Try checking if result.videos.length is equal to 0. If it is, no videos were found. You could also show us line 37 as that's where the error is originating

restive furnace
#

^ do that in try catch block if result is undefined

wanton iron
#

that's the line 37 so i'll try ton check the result.videos.length and throw a message if it's = 0 thanks

#

y

#

one more question in the catch block if the result is = 0 i throw an error or smth like that ? otherwise he'll execute the rest of the script and get an error. @sudden geyser @restive furnace

safe kelp
#

Any js one?

misty sigil
#

what do you need

safe kelp
#

I wanna try js can you give me something

#

Like a simple bot code a simple command

misty sigil
#
#

there is example here

safe kelp
#

Thank you

drowsy vector
#

so weird question how does my bot become seen on top.gg? like you can search for it?

safe kelp
#

How can I install module in js in terminal

#

How can I install module in js in terminal
@safe kelp @misty sigil

drowsy vector
#

oh ty

faint prism
#

@wanton iron the idea behind try/catch is because something threw an exception and you are going to catch it. Throwing it back out again intentionally defeats the purpose.

wanton iron
#

y i just saw that mb πŸ˜ƒ

lusty quest
#

does someone know if Postman reacts to status codes send with express.js? ```js
.then(data =>{
res.status(201),
console.log("Succsessfull")
console.log(data)
})
.catch(err =>{
res.status(500)
console.error([Riven Post] ${err})
})

#

nvm added send and it does what is should

worthy glacier
#
formatter: function (options) {
                var message = "";
    
                if (options.message !== undefined) {
                    message = options.message;
                }
    
                var level = options.level.toUpperCase();

                switch (level) {
                    case "INFO":
                    level = chalk.bgBlue(level);
                    break;
    
                    case "WARN":
                    level = chalk.black.bgYellow(level);
                    break;
    
                    case "ERROR":
                    level = chalk.bgRed(level);
                    break;
                    
                    case "DEBUG":
                    level = chalk.green(level);
                    break;

                    case "CMD":
                    level = chalk.black.bgWhite(level);
                    break;

                    case "READY":
                    level = chalk.black.bgGreen(level);
                    break;

                    default:
                    throw new TypeError("Logger type must be either warn, debug, log, ready, cmd or error.");
                }
                return (log => `${timestamp} [${level}] - ${message}`);
earnest phoenix
#

hmm interesting

#

: ))

thin tapir
#

how does one customise the help command in cs
i wanna do some message embeds

cinder sandal
#

how to change the undefined message

#

like in a ban command reason no reason specified or something

misty sigil
#

message ? message : "no reason"

cinder sandal
#

a text instead of just undefined

misty sigil
#

what is the text defined as?

drifting wedge
#

What music stuff does and doesn’t work with heroku ?

thin tapir
#

how does one customise the help command in cs
i wanna do some message embeds
@thin tapir can someone help with this, im using d#plus btw

cinder sandal
#

what is the text defined as?
@misty sigil as an argument a.k.a <ban [user] <reason>

misty sigil
#

yes but what is the reason defined as

#

its variable?

cinder sandal
#

nothing maybe

#

or something

misty sigil
#

bruh

#

that doesnt help at all

earnest phoenix
#

i want the bot send the yellow message in the channel invitescounter-lgos when the bot create him

#

channel.send is not defined

#

help me please

#

define channel

#

how do you have the bot dev role

#

how define it

lusty quest
#

client.channels.cache.get(channelid) as example

misty sigil
#

note: channel id is a string (a snowflake to be precise)

viral iris
#

how to put cooldown in command handler

midnight blaze
#

luckily discord.js is simple. client.commands.cooldown({t:5000}) just kidding

golden condor
#

Wait what

viral iris
#

how much the rate limit for feild in embed ?

green bison
#

hello

#

i need help

#

when ever i type node index.js it says :
const client = new Discord.client();
^

TypeError: Discord.client is not a constructor
at Object.<anonymous> (C:\Users\Owner\Desktop\Bots\index.js:3:16)
 at Module._compile (internal/modules/cjs/loader.js:1138:30)
 at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
 at Module.load (internal/modules/cjs/loader.js:986:32)
 at Function.Module._load (internal/modules/cjs/loader.js:879:14)
 at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
 at internal/main/run_main_module.js:17:47

misty sigil
#

code

green bison
#

const Discord = require('discord.js');
const client = new Discord.Client();

client.on("ready", () => {
console.log(Logged in as ${client.user.tag}!);
});
client.on("message", message => {
if (message.content === "-test") {
message.channel.send("Hi I am Awake 😁 ");
message.channel.sendFile("");
}
});

misty sigil
#

thats right

#

its Discord.Client()

green bison
#

tysm

earnest phoenix
#

Noice

green bison
#

i tried to test the code but it says
message.channel.sendFile("");
^

TypeError: message.channel.sendFile is not a function

misty sigil
#

Now, attachments are made in a different way

#

const attach = new Discord.MessageAttachment("./path/to/image.png", "name.png")
message.channel.send("stuff", attach)

green bison
#

ty

#

does anyone know where can i find bot codes that can help?

thick gull
#

wdym bot codes

#

you can use the docs if you mean that

green bison
#

yes

#

can you send the link

thick gull
#
#

I think

green bison
#

ty

green bison
#

const embed = new Discord.RichEmbed() is not working

gaunt spear
#

hey anyone know good vps?

misty sigil
#

const embed = new Discord.RichEmbed() is not working
@green bison Discord.MessageEmbed()

green bison
#

ty

honest perch
#

@gaunt spear read pins in here

earnest phoenix
#

can someone help fix

#

const client = new Discord.Client();

const snekfetch = require('snekfetch');

var prefix = "$";

client.login("");


client.on("ready", () => {
    console.log("shit is ready.");
});

client.on("message", async message => {

    if (message.content.startsWith(prefix + "dm")) {
        var args = message.content.split(" ").slice(1);
        var msge = args.join(" ");

        if (!message.guild.member(message.author).hasPermission("ADMINISTRATOR"))
            return message.channel.send(
                ":x: You are not allowed to use this command!"
            );
        if (!msge) return message.channel.send("**Add A Message Pls**");
        message.delete();
        message.guild.members.map(m => m.send(msge));
    }

    if (message.content === prefix + "dm") {
        var help_embed = new Discord.RichEmbed()
            .setTitle("Please clarify your message.")
            .addField(
                "Infractions and errors:",
                "`No value was showed.`"
            )
            .setImage(
            )
            .setColor("#ffa31a");
        message.channel.send(help_embed);
    }
});
tight plinth
#

@earnest phoenix looks like you copy pasted code!

earnest phoenix
#

i did

#

its not mine

tight plinth
#

yep

honest perch
earnest phoenix
#

how do ifix it

#

lol

tight plinth
#

and thats not a good idea

#

lemme explain

earnest phoenix
#

im not tryna get it verified

tight plinth
#

Never ever use YouTube tutorials for programming. Only watch videos like "RegExp Explained" "I coded x in y time" "Secret console features" etc. Nothing with the word "guide" or "tutorial" in the title. The same goes for writen guides/tutorials on websites like medium.com

The only guides you should use, is the library/language's official guides and docs.

The following websites may also be taken in use as they're always up to date, meant to help programmers, sufficient, and/or has a good explanation of what the certain things means, what they do, what they return, where to use them, where you can use them, etc.
https://www.w3schools.com/
https://developer.mozilla.org/en-US/
https://stackoverflow.com/

midnight blaze
#

why do you even want a bot, when you just copy paste a command/code?

tight plinth
#

not exactly that but still applies

earnest phoenix
#

lol

misty sigil
#

that is against tos

#

and api abuse

earnest phoenix
#

its on my alt

#

that idc

#

about

misty sigil
#

still UHM

honest perch
misty sigil
#

actually i have evidence now zoomeyes

tight plinth
#

:banhammer:
@misty sigil what he did

misty sigil
#

good work

tight plinth
#

ah

#

the pfp?

earnest phoenix
misty sigil
#

you just revealed you wanna make a dm all bot

earnest phoenix
#

is anyone gonna help me smh

sudden geyser
#

The same goes for writen guides/tutorials on websites like medium.com
I find those very useful for explaining.

misty sigil
#

not with a dm all bot

earnest phoenix
#

why

#

its just to fix code

tight plinth
#

@earnest phoenix we wont help you making mass dm command

earnest phoenix
#

what about for money

tight plinth
#

thats even worse

honest perch
#

this guy

earnest phoenix
sinful belfry
#

@earnest phoenix no mass DM commands please

#

it abuses the API

earnest phoenix
#

kk

sinful belfry
#

and no looking for developers here either ty

earnest phoenix
#

hm

#

know where i can?

sinful belfry
#

-needdev

gilded plankBOT
#

DBL is not a place to find developers for jobs. You can try and put a request on Fiverr or Freelancer. Please do not post the request again. Doing so may result in punishment.

misty sigil
#

i dont think any dev in their right mind are gonna make a mass dm command ngl

sinful belfry
#

don't ask for a mass DM command tho please

tight plinth
#

@sinful belfry @earnest phoenix dm'd me for help i said no he send >purge 40 and all of his messages were deleted and now he blocked me

earnest phoenix
#

lol what?

tight plinth
#

wheres my notification center for proof

earnest phoenix
#

could be fake

tight plinth
#

@earnest phoenix nah its not

#

change my mind

sinful belfry
#

@tight plinth would you mind DM'ing me anything else you have

#

otherwise, this isn't the channel to continue it

tight plinth
#

unfortunately thats all i have

sinful belfry
#

oh ok

#

thanks

strange trout
#

Mass DM big wack

dreamy thistle
#

how long does it take to get the bot approval? Just for know.

earnest phoenix
#

3-4 weeks

#

or more

dreamy thistle
#

okay bro, thank you

#

do i get any mail or whatever when its done?

earnest phoenix
#

ur get a dm

#

from @gilded plank

dreamy thistle
#

πŸ‘ thank you soo much

green bison
#

can anyone help me fix this
TypeError: message.channel.MessageEmbed is not a function

summer torrent
#

yes it is not a function

eternal osprey
#

hey guys

#

how do i let a command only work on people with admin rights?

#

discord.js

summer torrent
#

<guildmember>.hasPermission()

eternal osprey
#

okay

#

is there any discord.js doc about using this command?

green bison
#

whats the command to send Embeds?

#

code*

summer torrent
#

just send embed class with send() function

eternal osprey
#

btw what is the admin permission?

#

ADMINISTRATOR

#

right?

summer torrent
green bison
#

just send embed class with send() function
@summer torrent
like this? message.channel.send(embed)

summer torrent
#

yes

earnest phoenix
earnest phoenix
#

why

#

Okay.. What language? What library? What traceback was there?

winter basalt
#

that hastebin is js

lone coyote
#

i still have a nameerror

#
async def info_error(ctx, error):
    if isinstance(error, commands.BadArgument):
        await ctx.send('I could not find that member...')```
#

info not defined

#

help would be appreciated :)

#

any idea why this may be?

ionic dawn
thick gull
#

that looks like the djs guide command handler cool down without handler on cooldown

earnest phoenix
#

@thick gull hi

#

@thick gull can you give me nitro descord?

faint prism
#

Not development related @earnest phoenix

earnest phoenix
#

@faint prism yeah plz

#

@faint prism i m not devlopment related yeah

faint prism
#

starman plz

thick gull
#

I

sinful belfry
#

@earnest phoenix no begging for nitro, and please keep this channel on topic thank you

thick gull
#

I can't give you nitro no

earnest phoenix
#

@sinful belfry ok ❀

#

@thick gull 😒

sinful belfry
#

sigh it really isnt a good idea to continue it

earnest phoenix
#

@sinful belfry ok you are intelgent for meπŸ’”πŸ˜’

faint prism
#

@earnest phoenix You better start talking about development real quick if you're gonna keep posting here

earnest phoenix
#

@faint prism aa ok

faint prism
#

For example, did you know that & and && represent similar but very different aspects in conditionals?

earnest phoenix
#

@faint prism yeah

lone coyote
#

can someone help me? @earnest phoenix.error() returns name error name is not defined. Code: @info.error() async def info_error(ctx, error): if isinstance(error, commands.MissingRequiredArgument): await ctx.send('I did not recognize that command. You may be missing a parameter.')

faint prism
#

@earnest phoenix What's different about them?

lone coyote
#

oops

faint prism
#

oops
@lone coyote Can you post full error message?

lone coyote
#

sure

#

Ignoring exception in command tip:
Traceback (most recent call last):
File "C:\Users\Sam\AppData\Local\Programs\Python\Python38\lib\site-packages\discord\ext\commands\bot.py", line 903, in invoke
await ctx.command.invoke(ctx)
File "C:\Users\Sam\AppData\Local\Programs\Python\Python38\lib\site-packages\discord\ext\commands\core.py", line 847, in invoke
await self.prepare(ctx)
File "C:\Users\Sam\AppData\Local\Programs\Python\Python38\lib\site-packages\discord\ext\commands\core.py", line 784, in prepare
await self._parse_arguments(ctx)
File "C:\Users\Sam\AppData\Local\Programs\Python\Python38\lib\site-packages\discord\ext\commands\core.py", line 690, in _parse_arguments
transformed = await self.transform(ctx, param)
File "C:\Users\Sam\AppData\Local\Programs\Python\Python38\lib\site-packages\discord\ext\commands\core.py", line 535, in transform
raise MissingRequiredArgument(param)
discord.ext.commands.errors.MissingRequiredArgument: amount is a required argument that is missing.

faint prism
#

``` plz

#

You're missing an argument it looks like

lone coyote
#

sure

#
Traceback (most recent call last):
  File "C:\Users\Sam\AppData\Local\Programs\Python\Python38\lib\site-packages\discord\ext\commands\bot.py", line 903, in invoke
    await ctx.command.invoke(ctx)
  File "C:\Users\Sam\AppData\Local\Programs\Python\Python38\lib\site-packages\discord\ext\commands\core.py", line 847, in invoke
    await self.prepare(ctx)
  File "C:\Users\Sam\AppData\Local\Programs\Python\Python38\lib\site-packages\discord\ext\commands\core.py", line 784, in prepare
    await self._parse_arguments(ctx)
  File "C:\Users\Sam\AppData\Local\Programs\Python\Python38\lib\site-packages\discord\ext\commands\core.py", line 690, in _parse_arguments
    transformed = await self.transform(ctx, param)
  File "C:\Users\Sam\AppData\Local\Programs\Python\Python38\lib\site-packages\discord\ext\commands\core.py", line 535, in transform       
    raise MissingRequiredArgument(param)
discord.ext.commands.errors.MissingRequiredArgument: amount is a required argument that is missing.
#

im trying to error handle that

earnest phoenix
#
- what ?
faint prism
#

amount is a required argument that is missing

earnest phoenix
#
-@faint prism yeah
lone coyote
#

auger im trying to handle the errors

faint prism
lone coyote
#

sorry that was after adjusting

#

before it just gives me info is not defined

faint prism
lone coyote
#

i believe so

faint prism
#

although, I don't use discord.py so I don't know much more, sorry

lone coyote
#

thank you for helping regardless

faint prism
lone coyote
#

my main concern is that @earnest phoenix.error() gives me a name error info not defined

#

i tried using client.command() to see if that would circumvent it

#

the other errors are irrelevant

zenith terrace
#

For example, did you know that & and && represent similar but very different aspects in conditionals?
@faint prism lmao nice response

#

did you know && and ||...I forgot what to say

faint prism
#

I was just trying to stay on topic somewhat lol

zenith terrace
#

I know lol

faint prism
#

A single | or & are bitwise operators and will evaluate the conditional after it. Adversely || and && no short circuit if the previous condition was true and will not evaluate the following conditional, which can save some devs from null references

#

I'm sure you know that though

#

Might as well finish what I was saying earlier though

lone coyote
#

may main concern is that @earnest phoenix.error() says info is name 'info' is not defined

timid terrace
#

.

zenith terrace
#

you dont have info defined

lone coyote
#

how should i define it?

zenith terrace
#

idk I dont know your code

lone coyote
#

i can copy past it

timid terrace
#

Turk varmi

lone coyote
#
from discord.ext import commands

client = commands.Bot(command_prefix="*")

@client.event
async def on_ready():
    print('We have logged in as {0.user}'.format(client))

@client.event
async def on_message(message):
    if message.author == client.user:
        return

    await client.process_commands(message)

@client.command()
async def tip(ctx, member: discord.Member, amount: float, reason: str):
    ctx.author = str(ctx.author)
    member = str(member)
    amount = str(amount)
    await ctx.send(F"{ctx.author} tipped {member} {amount} for reason: '{reason}'")

@info.error()
async def info_error(ctx, error):
    if isinstance(error, commands.MissingRequiredArgument):
        await ctx.send('I did not recognize that command. You may be missing a parameter.')
    
client.run('MYTOKEN')```
zenith terrace
#

oh its .py

lone coyote
#

yeah

#

probably should have specified

zenith terrace
#

idk py xD

lone coyote
#

oh ok

hard pumice
#

yo

lone coyote
#

i do not think it is that hard and thats why im so confused. I cant figure it out

#

hello

hard pumice
#

can anyone help with installing ffmpeg

#

like a walkthrough?

faint prism
#

for what OS?

hard pumice
#

im rlly confused

#

for making a music bot

faint prism
#

oh using a library?

hard pumice
#

idk what you mean

faint prism
#

idk what you mean

hard pumice
#

like you talking bout my files?

#

im new to bot making

faint prism
hard pumice
#

yes

faint prism
#

And you're trying to use it within your bot's code?

hard pumice
#

havent gotten there

#

i was watching a vid

#

and it said to intall ffmpeg

#

and it didnt show how

#

and all other videos are soo hard

faint prism
#

do you mean the ones that do show you how are too hard?

hard pumice
#

ye

#

am the big noob

earnest phoenix
#

Is there a way to check if a player blocked another player on Discodd? Or do I need to make my own block system?

lone coyote
#

for which language?

hard pumice
#

english

faint prism
#

oml

#

lmao

lone coyote
#

coding

earnest phoenix
#

discodd

lone coyote
#

coding language

hard pumice
#

?

faint prism
#

lmaoo

lone coyote
#

..........

glossy elk
#

hey

#

anyone know eris

hard pumice
#

ik thats what im saying

lone coyote
#

which coding language will the bot be in

hard pumice
#

oh idk

#

want me to show you the vid?

glossy elk
#

how do i get the client ID with eris

lone coyote
#

for python

#

just pip install ffmpeg

hard pumice
#

😒

#

idk what that means

lone coyote
#

do you have an ide?

faint prism
#

You're out of your depth here

hard pumice
#

idk what that means :[

faint prism
#

do you have an ide?
@lone coyote Not sure he knows what that means

lone coyote
#

fair enough

hard pumice
#

im new

faint prism
#

idk what that means :[
@hard pumice What are you trying to do frfr

lone coyote
#

is this your first ever coding project?

hard pumice
#

like this my first bot

#

a music bot

#

as simple as that

#

to vibe to

faint prism
#

I'd recommend doing a Hello World project first

hard pumice
#

did it

#

thats ez

faint prism
#

Do you know what an API is?

hard pumice
#

nope

#

not a single clue

faint prism
#

That is how you ask Discord for data and interact with Discord

hard pumice
#

i have node and vsc

#

thats what i used to make the bots

lone coyote
#

oh ok

#

vsc is the ide

hard pumice
#

oh

faint prism
#

VSC - an IDE (integrated development environment)
NodeJS - Used for running Javascript as a standalone (from a browser) program

lone coyote
#

yeah

#

auger is good at explaining it

earnest phoenix
#

how do i make it so only a certain role can run a command

faint prism
#

check for the user's role before executing the command

hard pumice
#

so back to my first question can anyone teach me how to install ffmpeg

earnest phoenix
#

theres so many youtube videos on that

glossy elk
#

Hello?

#

How can I get the client iD in Eris

faint prism
#

@hard pumice You need to learn how to use APIs and other project's libraries before approaching a discord bot project

hard pumice
#

@earnest phoenix ik but when i try to do ffmpeg in the command prompt it says directory not fpund

glossy elk
#

Just tell the man how to install ffmpeg

faint prism
hard pumice
#

waht

lone coyote
#

go to site

hard pumice
lone coyote
#

oh

hard pumice
#

i was told to go here

#

on vids

thick gull
#

the heck is zeranoe

lone coyote
#

click download build

hard pumice
#

did

#

want me to show you?

lone coyote
#

sure

hard pumice
#

all i did

thick gull
#

you have to add ffmpeg

hard pumice
#

go to vc

thick gull
#

To your path

hard pumice
#

go to testing 1

#

ik m8

#

did that

faint prism
#

Or cd to the directory and run the binary file there

hard pumice
#

well i dont have it in a certain thing

#

its in my c drive

#

just there

#

can you cd to that?

lone coyote
#

yes

hard pumice
#

ah ok

#

lemme try

faint prism
#

cd is a command prompt command for changing directories

sudden geyser
#

VSC - an IDE (integrated development environment)
@faint prism vsc isn't really an IDE

hard pumice
#

ik

faint prism
#

@faint prism vsc isn't really an IDE
@sudden geyser bro I'll fight you on that

sudden geyser
hard pumice
#

but i thought it couldnt go into just like the drive

#

thought it was folders

faint prism
#

shit

#

@sudden geyser you win

#

It's a glorified notepad with plugins that compile for it pandasad

hard pumice
#

how am i supposed to say it

#

i did Windows (C:)

#

and no directory

faint prism
#

C: has a root directory

#

and it's C:\

hard pumice
#

mk

faint prism
#

C: is just the drive letter

hard pumice
#

well i dont need to see the files

#

ik the name

#

thats more complicated in looks than it actually is

faint prism
#

what is? cd C:\ ?

hard pumice
#

waht

#

btw all the names are right

#

but somethings not right

faint prism
#

type dir

hard pumice
#

my files dont say exe

faint prism
#

it lists all files in your current folder

hard pumice
#

like ffmpeg.exe

#

ik

#

ill try

#

wait

#

tf

#

now it says exe when i say dir

#

but not in the folder

faint prism
#

you have to specify the entire filename

#

extension and all

hard pumice
#

is this a glitch?

#

one says exe

#

one dosent

faint prism
#

C:\ffmpeg\bin\ffmpeg.exe <-- This

hard pumice
#

Β―_(ツ)_/Β―

#

mk

faint prism
#

It's a windows setting to "Hide file extensions like .exe"

#

Which you have enabled

hard pumice
#

dad i did it

#

i did a thing

faint prism
#

🎊

hard pumice
#

i lost hope

#

but i now regained it

#

imma drink some water to celebrate

#

then why in the vid does the guy type ffmpeg

#

and this comes up

#

but i have to do ffmpeg.exe

#

i had everything right this entire time

#

just i wasnt saying .exe

faint prism
#

Yuppp

lone coyote
#

no worries

#

anyway

faint prism
lone coyote
#

how can i get info to not give me a name error

#
async def info_error(ctx, error):
    if isinstance(error, commands.MissingRequiredArgument):
        await ctx.send('I did not recognize that command. You may be missing a parameter.')```
ruby shard
#

#avatar

#

-avatar

hard pumice
#

@faint prism is there something im doing wrong

#

the token is my bots token so idk how thats wrong

#

and the code is the same on the other thing Β―_(ツ)_/Β―

faint prism
#

@sinful belfry token leak

hard pumice
#

hm?

faint prism
#

@hard pumice Please go to discord dev and regen your token immediatly

hard pumice
#

oh dang

#

aight

#

its done

#

forgot

opaque seal
#

comm after "Client"

hard pumice
#

ill dm you

earnest phoenix
#

you missed a comma

hard pumice
#

everything

#

i did?

earnest phoenix
#

yes

hard pumice
#

whre

earnest phoenix
#

after Client

opaque seal
#

After "Client"

hard pumice
#

in token or in the other

#

k

earnest phoenix
#

bruh

hard pumice
#

it just made 2 more problems

#

bruh

#

wait

#

i got it

#

but theres still something else

#

thats wrong

#

1 more

fervent goblet
#
const { Client, Attachment } = require('discord.js')
hard pumice
#

ik i fixed

#

btw thats not my token anymore

fervent goblet
#

bruh

hard pumice
#

so dont worry

fervent goblet
#

stop leaking your token

hard pumice
#

its not my token

#

its my old one

#

dosent do anything

#

i regend

fervent goblet
#

k den

hard pumice
#

but waht is the problem

#

theres more code

#

wanna see it?

opaque seal
#

"let" instead of "Let"

#

Mate you will need some js knowledge to code a discord bot

hard pumice
#

its capital

#

idk what you mean

opaque seal
#

Change Let to let

hard pumice
#

oh

opaque seal
#

Mate you will need some js knowledge to code a discord bot
also ^

hard pumice
#

ik

#

idk where to start

faint prism
#

w3schools

hard pumice
#

send me a dm of the link

#

or is that a yt channel?

faint prism
#

It's a great website

zenith terrace
#

Or read the js docs

opaque seal
hard pumice
#

this is wehat imean

#

where to start

opaque seal
#

If you don't know JS but would like to learn about it, here are a few links to help get you started:

CodeCademy's interactive JavaScript course
Eloquent JavaScript, a free online book
Nodeschool, for both JavaScript and Node.js lessons
MDN's JavaScript guide and full documentation
Google, your best friend
Take your pick, learn some JS, and once you feel like you're confident enough to make a bot, come back and get started!

hard pumice
#

yall are recomending me 3 differnent things

faint prism
#

It's the same language wherever you go

hard pumice
#

aight

dusky mason
#

just search up mosh js coding course

#

lmao he is very good to start off

glossy elk
#

How can I get the uh info of a token

#

hm?

hard pumice
#

its saying my token is invalid when i try to run my bot

#

but its right

#

is there a reason why?

glossy elk
#

Make sure it's not a user token..

#

And doube make sure it's not the client secret

hard pumice
#

its the bots token

glossy elk
#

And doube make sure it's not the client secret
@glossy elk

hard pumice
#

what is that?

glossy elk
hard pumice
glossy elk
#

Press copy.

hard pumice
#

aihgt

#

did it

glossy elk
#

Put it in your text editor.

hard pumice
#

is that my constant token ?

glossy elk
#

yes

hard pumice
#

mk

glossy elk
#

unless you regenerate

hard pumice
#

ok did it

#

now lemme try

#

hmm

#

idk

glossy elk
#

are you sure you saved it

#

πŸ‘€

hard pumice
#

yup

glossy elk
#

doesnt say u did

hard pumice
#

did it right before i typed that

glossy elk
hard pumice
#

ctrl s right?

glossy elk
#

yes

#

just make it autosave

hard pumice
#

then i did it

#

how

glossy elk
#

file => autosave

hard pumice
#

wtf

#

@faint prism

#

i need help

#

with this

earnest phoenix
#

your client's token is invalid

hard pumice
#

no shiz

#

ik that

#

but i did it right

earnest phoenix
#

?

hard pumice
#

token is right

#

script is right

earnest phoenix
#

ok

faint prism
#

Is it though

hard pumice
#

idk

earnest phoenix
#

but it's invalid

hard pumice
#

no errors

#

ik

#

its gay

faint prism
#

I see an error

hard pumice
#

where

queen needle
#

Did you accidently put a extra letter or copied something wrong

faint prism
#

In the thumbnail-sized screenshot you posted

hard pumice
#

...

#

want a fullscreen?

earnest phoenix
#

huh

hard pumice
#

want to see would my token looks like?

earnest phoenix
#

no tf

#

do you want to regen it again?

hard pumice
#

not so you can copy it

#

ye

#

why not

#

just repaste

#

thats it

#

no biggie

queen needle
#

regen it and see

earnest phoenix
#

"no biggie" ok

hard pumice
#

mk

earnest phoenix
#

what

hard pumice
#

thats what im saying

#

what

earnest phoenix
#

can u be serious

queen needle
#

did you mess up the login of it

hard pumice
#

login?

earnest phoenix
#

regen the token and paste it back

hard pumice
#

um ok

#

an d wdym login

queen needle
#

you have to log the bot in bot.login(token) at the bottom of the code

earnest phoenix
#

^

hard pumice
earnest phoenix
#

ok nice

hard pumice
#

k

#

Β―_(ツ)_/Β―

#

so confused

earnest phoenix
#

i had that before, just waited a few hours and it worked πŸ€’

hard pumice
#

wtf

#

nani

#

just wait?

#

ok

#

ill resume tommorow

glossy elk
#

How can I fetch application info via a token

pale vessel
#

oh i guessed you got your question answered

#

the one you dmed me about

glossy elk
#

yes.

pale vessel
#

i see

glossy elk
#

i was dumb

#

and didnt know

#

that

#

eris is literally so similar' to djs

#

anyways

#

How can I fetch application info via a token
@glossy elk

pale vessel
#

what token?

glossy elk
#

any token

pale vessel
#

and what application

#

discord?

glossy elk
#

yes

#

any discord token*

pale vessel
#

wdym by token

#

bot token?

glossy elk
#

yup

pale vessel
#

well the least you can do is get the client id

glossy elk
#

i would like to fetch a client application via a discord bot token

#

yeah ik

pale vessel
#

but that's about it

#

i think

glossy elk
#

yeah, how can i fetch tho

pale vessel
#

fetch what?

glossy elk
#

a application

#

via a token

pale vessel
#

the id is the only thing you can get

glossy elk
#

ik

pale vessel
#

what do you mean by fetching the application?

glossy elk
#

I want the ID

#

okay

pale vessel
#

do you know how to get the id?

glossy elk
#

okay let me try to rephrase this

pale vessel
#

WHAT APPLICATION

#

smh

glossy elk
#

I am trying to fetch a discord client application via a discord bot token

pale vessel
#

oh

#

don't think that's possible

#

it's not in the public api

glossy elk
#

mmm

#

well if you were to login

#

and you did client.appINfo or something

#

not sure what it was

#

you can see the info of it

#

ClientApplication#

pale vessel
#

that's oauth

glossy elk
#

hm

#

but i can stil do

pale vessel
#

it uses @me

glossy elk
#

client.fetchApplication

#

nvm

#

thats also me

pale vessel
#

well since you have the token

#

it's not hard to fetch the application

glossy elk
#

i mean

pale vessel
#

just do a GET request from the REST api with the token as authorization and access @me

glossy elk
#

that was me being dumb'

#

right there

delicate shore
#

how to install node

#

in my vps

glossy elk
#

how do i fetch messages in v11

delicate shore
#

it is stuck here

#

should i do yes or no

pale vessel
#

what are you doing

delicate shore
#

Let's go ditch glitch

#

Galaxy gate

slim heart
#

can i use __cfduid cloudflare cookie as a unique user identifier for rate limtis?

fickle dune
#

why does
this show when i try to use &gay to overlay and image over the command author

glossy elk
#

my bot went down just recently because of a storm will anything happen to it if there’s 20 minutes of downtime?
@swift umbra no?

fickle dune
#

is heroku died

delicate shore
#

Hey i think there's something wrong with my userinfo command. Whenever i run the command, it shows today's date for the joined date and idk why.

slender thistle
#

What's joineddate

delicate shore
#

Wait I didn't sent it

#
const Discord = require('discord.js')
const moment = require('moment');
const { utc } = require('moment');
module.exports = {
    name: 'userinfo',
    description: "This is a userinfo command",
    async execute(message, args) {
        let userArray = message.content.split(" ");
        let userArgs = userArray.slice(1);
        let member = message.mentions.members.first() || message.guild.members.cache.get(userArgs[0]) || message.guild.members.cache.find(x => x.user.username.toLowerCase() === userArgs.slice(0).join(" ") ||
            x.user.username === userArgs[0]) || message.member;
        if (member.presence.status === 'dnd') member.presence.status = 'Do Not Disturb'
        if (member.presence.status === 'online') member.presence.status = 'online'
        if (member.presence.status === 'idle') member.presence.status = 'Idle'
        if (member.presence.status === 'Offline') member.presence.status = 'Offline'

        let x = Date.now() - member.createdAt
        let y = Date.now() - message.guild.members.cache.get(member.id).joinedAt
        const created = Math.floor(x / 86400000)
        const joined = Math.floor(y / 86400000)

        const joineddate = moment.utc(member.joinedAt).format("DD-MM-YYYY, HH:mm:ss")
        const createddate = moment.utc(member.createdAt).format("dddd, MMMM Do YYYY, HH:mm:ss")
        let status = member.presence.status```
#
            .setAuthor(member.user.tag, member.user.displayAvatarURL())
            .setTimestamp()
            .setColor('RANDOM')
            //.setImage(member.user.displayAvatarURL())
            .setImage(member.user.displayAvatarURL())
            .setThumbnail(member.user.avatarURL({ format: "gif" }))
            .addField("Member ID", member.id)
            .addField('Roles', `<@&${member._roles.join('> <@&')}>`)
            .addField("Account Created on: ", `${createddate}`)
            .addField('Joined the server on', `${joineddate} \n> ${joined} day(s) ago`)
            .addField("Status", status)
        message.channel.send(userEmbed)


    }
}```
earnest phoenix
#

Joined date is the date you joined the server

karmic compass
#

In the simplest terms what is a callback and promise

#

In JS

worthy glacier
#

what happens if you copied the id of a emoji in a server and its used somewhere by your bot but you delete that emoji from your server

pale vessel
#

it will stay up on older messages

#

but it won't be valid on newer messages

lone coyote
#

when i do: @info.error() async def info_error(ctx, error): if isinstance(error, commands.MissingRequiredArgument): await ctx.send('I did not recognize that command. You may be missing a parameter.'): it gives me name error 'info' is not defined

#

please help

#

discord py btw

#

please ping me if you can help

#

:)

worthy glacier
#

if i use this command to get an emoji what happens if theres multiple servers with the same name for emoji?

pale vessel
#

you're checking for emojis from the message's guild

#

it won't find emojis from other servers

worthy glacier
#

gotcha

lone coyote
#

can someone help with my code as i havent figured it out for over a week?

worthy glacier
#

dontasktoask

#

justask

lone coyote
#

????????

#

what

pale vessel
#

what's the problem?

lone coyote
#

the problem is when i do @info.error async def info_error(ctx, error): if isinstance(error, commands.BadArgument): await ctx.send('I could not find that member...') copied from the documentation it says name error info is not defined

hot totem
#

does anyone know how to make a meme command ?

heavy anchor
#

Literally everyone does

hot totem
#

i think i am the only one that don't know how anymore ;-;

weak rain
#

let channel = client.guilds.channels.cache.find((x) => (x.id === "739469830343753778"))

#

why this is not working

#

:/

hot totem
#

idk

heavy anchor
#

Are you using v12?

hot totem
#

Are you using v12?
who ?

heavy anchor
#

@weak rain

weak rain
#

Yes

hot totem
#

@weak rain if u didn't,go in the terminal and put after the last word npm install discord.js if u didn't do that

weak rain
#

wtf

#

i already did

#

that

hot totem
#

did you downloaded node.js ?

weak rain
#

Yes

#

my code is ready only

#

this is not working

#

previously was working fine

hot totem
#

did you put the token where it's supposed to be ?

weak rain
#

Yes

heavy anchor
#

@weak rain try

let channel = client.channels.cache.get("739469830343753778")```
delicate shore
#

is 1gb ram sufficient for hosting 2 bots?

thick gull
#

Can I get the bot's member object? like client.user is a thing i think, but client.member?

#

wait nvm im dumb

#

docs are thing

#

kek

hot totem
#

`const Discord = require('discord.js');
const client = new Discord.Client();

client.on('ready', () => {
console.log(Logged in as ${client.user.tag}!);
});

client.on('message', msg => {
if (msg.content === 'ping') {
msg.reply('Pong!');
}
});

client.login('token');`

#

that might work

heavy anchor
#

@delicate shore if they are small my bot only has 512 mb of ram

hot totem
#

and name the main folder "main.js"

delicate shore
#

what is a small bot

thick gull
#

<500 servers imo

weak rain
#

@weak rain try

let channel = client.channels.cache.get("739469830343753778")```

@heavy anchor mm

#

kk

#

ty

thick gull
#

after that its kinda medium sized

delicate shore
#

my bot is in 618 servrs

thick gull
#

but it really depends

heavy anchor
#

I have 80 guilds and 200k + users

delicate shore
#

i don't calculate users

#

my bot has 618 servers

hot totem
#

my bot is in 2 server causse idk how to make it go on the discord bot list rn

heavy anchor
#

Oof ok idk then

delicate shore
#

ok

#

ok

weak rain
#

It worked thanks @heavy anchor

heavy anchor
#

No problem glad it worked

hot totem
#

guys,just for ask what the code for meme command ?

queen needle
#

what

sonic lodge
#

no spoonfeeding here

heavy anchor
#

Very easy find a meme api make a request and send the link in an embed

low phoenix
earnest phoenix
hot totem
thick gull
#

fetch()?

#

oh wait

#

no

#

thats fine

worthy glacier
#

Discord.MessageEmbed

thick gull
#

.then in a .then

#

ok:)

hot totem
#

@thick gull i am not sure it's the code so i am waiting

#

uh who know how to make a BOT public ?

ionic dawn
#

Public?

#

You can make it public by sharing the inv link

swift void
#

How can I send HTML form data to a Discord webhook?

hot totem
#

With the website

swift void
#

I designed the website but how

heavy anchor
swift void
#

Aw man, so I have to use a google forM?

heavy anchor
#

That’s the only way I know how to do it

swift void
#

Oof

heavy anchor
#

You know you can embed google forms into your website

swift void
#

Yes, I know

#

Thanks! :D

pallid igloo
#

BRUH

swift void
#

Please don't copy n paste

pallid igloo
#

STOP POSTING THAT IN EVERY CHANNEL

swift void
#

but there's Invite Manager

slender thistle
#

I told you to be patient

pallid igloo
swift void
#

Yeah just mute lol

pallid igloo
#

The any off-topic conversations will be deleted and muted rule

heavy anchor
#

Oof no need to tell a mod how to do their job

worthy glacier
#
exports.commands = new Discord.Collection();
exports.aliases = new Discord.Collection();
exports.info = new Discord.Collection();
#

why does exports show up undefined

drowsy sentinel
#

Why not export it as an array instead of multiple exports?

swift void
#

How do I add a Login to Discord function?

sudden lily
#

i need a bot dev!

earnest phoenix
#

@sudden lily dm

sudden lily
#

ok

hot totem
#

@sudden lily it's not hard to dev a bot

heavy anchor
#

Says the person asking how to make a meme command...

weak rain
#
    let rNew = await message.guild.roles.create({       
               ^^^^^

SyntaxError: await is only valid in async function      
    at wrapSafe (internal/modules/cjs/loader.js:1053:16)
    at Module._compile (internal/modules/cjs/loader.js:1101:27)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10)
    at Module.load (internal/modules/cjs/loader.js:985:32)
    at Function.Module._load (internal/modules/cjs/loader.js:878:14)
    at Module.require (internal/modules/cjs/loader.js:1025:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at E:\Thunder\handlers\command.js:19:24
    at Array.forEach (<anonymous>)
    at module.exports (E:\Thunder\handlers\command.js:11:32)

E:\Thunder>```
#

done

hot totem
#

yeah finnaly it worked

weak rain
#
    at Object.run (E:\Thunder\commands\logs\setup.js:36:30)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
(node:7156) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, 
use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:7156) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
#

why erro

#
    let rNew = await message.guild.roles.create({
        data: {
          name: rName,
          color: 0xFAC200,
          permissions: []
        },
      })
      message.guild.channels.forEach(async (channel, id) => {
        await channel.overwritePermissions(muterole, {
          SEND_MESSAGES: false,
          ADD_REACTIONS: false
        });
      });
      console.log(`ID: ${rNew.id}`)


let cName = "thunder-modlogs"
let cNew = await message.guild.channels.create(cName)
    
  console.log(`ID: ${cNew.id}`)
  let hgembed = new Discord.MessageEmbed()
  .setColor("0x14DF73")
  .setDescription("βœ… ***Sucessfully completed my setup***")
  .addField("Things I created:", `${rName} role & ${cName} modlog channel`)
  .addField("Things you have to do now:", "setup the permissons for the muted role and modlog channel & then i will be fully set and ready to do my work")
message.channel.send(hgembed)
    }
  }   
}```
manic osprey
#

@weak rain read error : (node:7156) UnhandledPromiseRejectionWarning: TypeError: message.guild.channels.forEach is not a function

weak rain
#

so what should i do?

manic osprey
#

repair command

#

message.guild.channels.forEach you read library

weak rain
#

message.guild.channels.forEach you read library
@manic osprey lemme try

#

wait

earnest phoenix
#

@weak rain dude

#

Use .cache

#

Bruh

cloud kelp
#

kinda related more to the topgg advert page, but how would I go about adding a css animation to the bot icon

#

i have the code I want to add

viral iris
#

Any1 know canvas here?

cloud kelp
#

but whatever I try dont work

delicate shore
#

how to track someone with his phone number

earnest phoenix
#

Lmfao

#

How do I edit the CSS styling of an element through JavaScript? I am not really that good at CSS (I only use style tags in HTML webpages)

#

I tried:

#
<p id="yo" style="color: yellow;">yo make me green</p>
<script>
var theElement = document.getElementByID("yo");
theElement.style("color: green;");
</script>
#

of course it won't work theElement.style is a property not a function

swift void
#

@weak rain you need async

#

to use await

delicate shore
#

i really need help on this - how to track someone with his phone number

earnest phoenix
#

lmfao

#

google

swift void
#

wut

earnest phoenix
#

we won't help with hacking and privacy breaches

swift void
#

how do I sent HTML form data to a discord webhook,

earnest phoenix
#

tracking someone is a privacy breach

#

how do I sent HTML form data to a discord webhook,
@swift void bruh

swift void
#

how can I implement oAauth in a site,

earnest phoenix
#

the discord webhook gives you a url right

swift void
#

how can I create a web page for every click of a buton

#

button*

#

I'm trying to make my own bot list

earnest phoenix
#

how do you NOT ask for spoonfeeding

#

how do I sent HTML form data to a discord webhook,
@swift void send the form data to the discord webhook url

swift void
#

those were jokes I know how to do each and every one

earnest phoenix
#

How do I edit the CSS styling of an element through JavaScript? I am not really that good at CSS (I only use style tags in HTML webpages)
I tried:

<p id="yo" style="color: yellow;">yo make me green</p>
<script>
var theElement = document.getElementByID("yo");
theElement.style("color: green;");
</script>
swift void
#

e

delicate shore
#

tracking someone is a privacy breach
@earnest phoenix i wanna find my brother's location

#

that's not a breach

#

;-;

earnest phoenix
#

the way you asked us

slender thistle
#

by a phone number?

#

Try GPS location or contacting your local law enforcement agency

earnest phoenix
#

Second option

shy cairn
#

How do I enable sever bot status ?

earnest phoenix
#

???

#

you mean show the server count

#

in the bot status

shy cairn
#

Yes

viral iris
earnest phoenix
#

@earnest phoenix if u know it I need help with something
@viral iris the way you worded it

slender thistle
#

-ask2ask

gilded plankBOT
#

Don't ask to ask.
Just ask your question, it wastes time if you say "i need help" or "can someone help me?" instead of just saying what the problem is. Save your time and other people's time and just ask the question.

Please read https://dontasktoask.com/ for an explanation on why this is an issue.

delicate shore
#

Try GPS location or contacting your local law enforcement agency
@slender thistle what do u mean exactly

#

With gps

shy cairn
#

Code how do I ?

delicate shore
#

how caan i track him

earnest phoenix
#

Go for the second option please

slender thistle
earnest phoenix
#

Code how do I ?
@shy cairn one second I'm typing

heavy anchor
#

<client>.guilds.cache.size

delicate shore
#

guilds.cache.size

earnest phoenix
#
"server count:" + client.guilds.cache.size
shy cairn
#

WhTs that

earnest phoenix
#

The sercer count

heavy anchor
earnest phoenix
#

client.guilds.cache is a collection of every single guild

#

spoonfeed
@heavy anchor bruh

shy cairn
#

How do I look

earnest phoenix
#

??

misty sigil
#

actually, it may not be all guilds

#

it most likely is

#

but may not be

glossy elk
#

Why is v11 going to be removed

fluid basin
#

v12 > v11

#

feature-wise and math/number-wise

misty sigil
#

Why is v11 going to be removed
@glossy elk because of the api url changing iirc

glossy elk
#

So if we modify it

fluid basin
#

thats not the main thing

glossy elk
#

We can still use it

fluid basin
#

intents is not implemented in v11