#development

1 messages ยท Page 1076 of 1

pure lion
#

^

ocean bridge
#

it gives me ::after

#

but its not working

opal plank
#

!important the fuck out of it

pure lion
#

What

opal plank
#

makes debugging one hell of a nightmare

#

!important on css

pure lion
#

What does it do

#

?

ocean bridge
opal plank
#

its a bypass basically

#

'fuck everything, just put this here' kind of element

pure lion
#

Oh cooool

opal plank
#

makes debugging one hell of a paradise

pure lion
#

Oh god

#

Why won't it just be there

#

Why do I have to force it

#

Head my shake

opal plank
#

you dont

#

thats the lazy solution for css

pure lion
#

So basically learn CSS or die

opal plank
#

'not working the way you want? !important it!'

#

Coders hate him!
See this one simple trick to completely master css!

solemn latch
#
.atag:after {
    border-left-color: blue;
}
#

right?

#

๐Ÿค”

pure lion
#

๐Ÿ˜

fallow sentinel
#

How do I change the long description color

restive furnace
#

css

solemn latch
#

get the class/id name, then set the color to what you want with css

fallow sentinel
#

Okey

#

This is me not knowing how to use inspect on mobile

solemn latch
#

๐Ÿคทโ€โ™‚๏ธ

#

never done it before

#

on mobile

fallow sentinel
solemn latch
#

the website has a preview button, you will probably just have to play with it

#

which is really all css is

#

trying stuff till it looks right

pure lion
#

Coding is just trying it and seeing what happens

restive furnace
#

expect css is visual

#

mostly coding is cli or something

exotic cradle
#

i changed my bot prefix to wing!, can someone remove the common prefix role?

solemn latch
#

pm a moderator

earnest phoenix
#

I changed the azure vm's disk increase to 2000GB but nothing is changed,can anyone help me?

#

@quartz kindle ??

solemn latch
#

a lot of VM's dynamically allocate disk space

earnest phoenix
#

What can i do?

#

??

#

I have to download 127GB something so i need to do it..

#

@solemn latch bro?

solemn latch
#

pls no pings

earnest phoenix
#

pls answer

#

if you know

fallow sentinel
#

Customized bot page to much?

solemn latch
#

are you posting that?

fallow sentinel
#

Hell no

#

I'll get banned If I do

earnest phoenix
#

Anyone can help me

#

pls

fallow sentinel
#

idk how to help u ยฏ\_(ใƒ„)_/ยฏ

hidden lynx
#

Are those just local changes or did you actually change the value? xD

fallow sentinel
#

Local

#

Just for the picture

#
										9999999</span>```
#

shh

hidden lynx
#

Yep

earnest phoenix
#
            Guild.findOne({
                guildId: message.guild.id
            }, async (err, guild) => {
                if (!guild) {
                    const guild = new Guild({
                        guildId: message.guild.id,
                        autorole: "Not Specified",
                        enable: false,
                        prefix: "/",
                        logs: true,
                        whitelistchannel: []
                    })
                    action();
                }
                if (!guild.whitelistchannel) {
                    guild.whitelistchannel = [];
                }
                if (guild.whitelistchannel.includes(message.channel.id || message.mentions.channels.first().id)) return message.channel.send("The channel already has been whitelisted !");
                async function action() {
                    let embed = new MessageEmbed()
                        .setColor("#a1ee33")
                        .setDescription("Whitelisted the channel, it won't get lock any more!")
                    message.channel.send(embed);
                    if (!args[0]) {
                        guild.whitelistchannel.push(message.channel.id);
                        return await guild.save();
                    }
                    else {
                        if (message.mentions.channels.first()) {
                            guild.whitelistchannel.push(message.mentions.channels.first().id);
                            return await guild.save();
                        }
                        else {
                            return message.channel.send("Please mentions a channel. For example `/whitelistchannel #general`")
                        }
                    }
                }
                action()
            })
#

it is not saving

nocturne grove
#

Can anyone help me? I have a role with 5 members. When I'm getting that size on my main bot, it returns 5. When I am getting it on my test bot with some intents disabled, it returns 2. With all intents again it returns 5. How?
@nocturne grove does anybody know this? Please mention me if you react

earnest phoenix
#

the DB

#

any cool coding ideas?

solemn latch
#

thats a little too much code to be sharing via discord.

earnest phoenix
#

nah

solemn latch
#

might wanna use hastebin or something

#

because its unreadable

earnest phoenix
#

it isnt 2024 word

solemn latch
#

okay, well i cant help because i cant read it

earnest phoenix
#

ok why

#

does anyone have a cool coding idea?

solemn latch
#

lol

#

too much code for discord

#

to format

earnest phoenix
#

ok . .

#

imma fix that

#
async function action() {
                    let embed = new MessageEmbed()
                        .setColor("#a1ee33")
                        .setDescription("Whitelisted the channel, it won't get lock any more!")
                    message.channel.send(embed);
                    if (!args[0]) {
                        guild.whitelistchannel.push(message.channel.id);
                        return await guild.save();
                    }
                    else {
                        if (message.mentions.channels.first()) {
                            guild.whitelistchannel.push(message.mentions.channels.first().id);
                            return await guild.save();
                        }
                        else {
                            return message.channel.send("Please mentions a channel. For example `/whitelistchannel #general`")
                        }
                    }
                }
#

this is not saving

#

ANY COOL CODING IDEAS?

#

@earnest phoenix No

solemn latch
#

make something you enjoy

pure lion
#

@earnest phoenix NO

#

:D

earnest phoenix
#

no is not an answer if you dont have a cool idea then just ignore

pure lion
#

OKAY!

solemn latch
#

im not sure why it wouldnt save

opal plank
#

@earnest phoenix go in #general or somewhere for that, here is incase you need help

#

not to gather ideas

fallow sentinel
#

:D

#

I've taken this too far

solemn latch
#

@nocturne grove are these members cached?
if you disabled some intents, they may not be cached anymore.

pure lion
#

Tf did you do

opal plank
#

lmao

nocturne grove
#

@solemn latch then I guess that's it. As it makes a difference when I disable them

#

Do you know which one? I do not hope the guild presences one

#

Someone's funny here ๐Ÿ˜‚

earnest phoenix
#

Anyone?

ocean bridge
#

Thanks for all the help people i figured it out ๐Ÿ™‚

solemn latch
nocturne grove
#

That's weird tho. And afaik I have all intents with members enabled

#

I used guilds guildmembers messages and dm's

#

Those 4 intents

feral aspen
#

Hey guys

#

Soon, Ill be hosting my bot on a hosting service.

#

I heard about a hosting service called FreshStart.

#

Is it good?

amber fractal
feral aspen
#

Is this freshstart?

amber fractal
#

that is yes

#

You'll probably want a good vps provider, that company looks like they do a lot of game hosting servers which is probably one of the biggest scams since the nigerian prince

#

there are some pins here

feral aspen
#

What hosting service do you recommend?

amber fractal
#

those are probably the most popular options

ornate flax
#

Does anyone know about the prefix replacement command?

earnest phoenix
#

r/python can be really interesting sometimes

ornate flax
#

what?

earnest phoenix
#

i didnt reply to you

#

but what do you mean by the prefix replacement commmand

#

if you mean hhow to change the prefix

ornate flax
#

i didnt reply to you
@earnest phoenix okay

earnest phoenix
#

then just do PREFIX = "yourprefix"

ornate flax
#

no

earnest phoenix
#

you want a ccommand to replace it

#

for a specific server?

#

like in whichever server it is asked for

ornate flax
#

special prefix for servers

earnest phoenix
#

oh

#

uhhh its a real pain in the ass but let me chec

#

js or py?

#

Anyone?

#

ye?

#

I changed the azure vm's disk increase to 2000GB but nothing is changed,can anyone help me?
?

versed igloo
#

So im using moment for date calculation but is there a way i can have it return like 365 days ago instead of one year ago

earnest phoenix
#

i know this is stupid but how do i make the bot ban kick and mute in discord.js

#

hmm i heard the docs is a good place to start

#

okay

pure lion
#

How do I run any file in nodejs, not just the entrypoint?

twilit rapids
#

node <filename>.js ?

pure lion
#

Mkay thanks

#

Relative or absolute path?

#

Nvm I assume absolute

low marsh
#

is there any way if a message has been sent -> do this..

pure lion
#

await the message

velvet void
#

} {
if (message.content.startsWith('p!help'));
const embed = new MessageEmbed()
.setTitle('Prueba')
.setDescription('Prueba!')
message.channel.send(embed);
}
});

#

The command does not respond

earnest phoenix
slender thistle
#

Hello any Python dev reading this, got a question for you. While searching through the Internet, I found two modules, which seem to be what I could use. (parser and dateparser)

I want to only support parsing human-style dates/times like 3 days or 2h (Meaning I don't want to support input like in 3 hours or 5 weeks ago).
Which one would be "simpler" in terms of usage and taking up less RAM?

earnest phoenix
#

Basically equivalent of the ms package in py

velvet void
#

Doesn't respond ...

earnest phoenix
#

@velvet void Mate I already spoonfed you the god damn fix.. can you stop

#

did you put the code in your message event?

velvet void
#

Okey

slender thistle
#

Essentially, alhassan. Not exactly familiar with the ms package, though

earnest phoenix
#

great answer

#

its what ur asking basically, @velvet void

pure lion
#

@earnest phoenix does ms work backwards?

earnest phoenix
#

not sure

pure lion
#

Dam okay

earnest phoenix
#

guys i need help blaze date

#

make it right format

pure lion
#

Don't ask to just ask

#

Wait no

#

Don't ask to ask

earnest phoenix
#

not createdAt.toLocaleString()

pure lion
#

LocaleTimeString

earnest phoenix
#

didn't work

#

message.author.createdAt.LocaleTimeString()

pure lion
#

Dude

earnest phoenix
#

message.author.createdAt.LocaleTimeString

pure lion
#

Add to

earnest phoenix
#

lol

#

still

slender thistle
#

Well, both modules seem very close to what I need, but with extra stuff that I don't need ๐Ÿค”

#

I'll just probably get to that tomorrow and see if I can find anything less generic

earnest phoenix
#

?

slender thistle
earnest phoenix
#

oh

slender thistle
#

time seems to support conversions as well, hmm

pure lion
#

Whats the py package system?

slender thistle
#

pypi

pure lion
#

Oooooooo

slender thistle
#

I could probably bother with regexes on this one?

#

or a complete clusterfuck of .replaces

pure lion
#

fiNdOnEaNdUpDaTe

earnest phoenix
#

i need an idea for a new command, what should it be?

pure lion
#

Don't ask me dude

#

The docs give you the ability to do what you want

fallow sentinel
#

How do I get bots uptime
It's returning as undefined and my code for it is ${message.client.ws.uptime}

smoky spire
#

uptime is just on client not ws

fallow sentinel
#

Ok

#

@smoky spire how do I make it return a better value than "111234"

smoky spire
#

convert it from milliseconds to whatever you want

fallow sentinel
#

Ok

velvet void
#

Somebody pass me the code so I can put commands in a folder?

misty sigil
#

Nobody is gonna spoonfeed you

#

Look it up on google, there's code on there I'm sure.

velvet void
#

Okay

slender thistle
#

Please read the rules thoroughly @velvet void

gray zealot
#

Hiii,

if (message.content.startsWith(prefix + 'avatar')) {
        const user = message.mentions.users.first() || message.author;
        const avatarEmbed = new Discord.MessageEmbed()
            .setColor("RED")
            .setAuthor(user.username + '\'s Avatar')

            .setImage(user.avatarURL);
        message.channel.send(avatarEmbed);
    }
```any ideas why this doesnt work? ๐Ÿ™‚ Its supposed to just be an avatar cmd
midnight blaze
#

.displayAvatarURL({dynamic: true})

gray zealot
#

ty

earnest phoenix
#

`if (msg.startsWith (prefix + "ban")) {
if (!message.member.hasPermission("ADMINISTRATOR")) return;
if (mention == null) return;
if (message.guild.member(mention).hasPermission("BAN_MEMBERS")) return;
let reason = message.content.slice (prefix.length + mention.toString().length + 5);
message.channel.send (mention.username + " Has been banned");
mention.sendMessage ("You have been banned because: \n" + reason).then (d_msg => {
message.guild.member(mention).ban(reason);
})
}

if (msg.startsWith (prefix + "kick")) {
if (!message.member.hasPermission("ADMINISTRATOR")) return;
if (mention == null) return;
if (message.guild.member(mention).hasPermission("KICK_MEMBERS")) return;
let reason = message.content.slice (prefix.length + mention.toString().length + 5);
message.channel.send (mention.username + " Has been kicked");
mention.sendMessage ("You have been kicked because: \n" + reason).then (d_msg => {
message.guild.member(mention).kick(reason);
})
}`

#

im trying to ban and kick but it doesnt work

#

node.js

midnight blaze
#

vcause here, did you know that 1 of 5 dev dont know node js when they see it

earnest phoenix
#

ok vsauce*

#

ok

honest perch
#

Your code is a mess

#

At the top

earnest phoenix
#

i know

midnight blaze
#

.sendMessage => v11, if you use v12

#

update this

earnest phoenix
#

ok

#

ok

unique knoll
#

I've got a Message Embed and it does an @ everyone in the body. For some reason it goes blue and looks like it would work, but doesn't ACTUALLY @ everyone - any ideas? Is this guild permissions on the channel or an issue with the command?

misty sigil
#

it doesn't @ everyone

#

you can't ping in embeds

haughty night
#

Any idea that when the bot is ready how to get guild id

molten pewter
#

Anyone know how to use pm2 to run a bot in cluster mode on multiple computers?

celest schooner
#

if i have a module.exports.model = "ACERTAINVALUE"

is there a way I use "ACERTAINVALUE" later in the same file as the exports

sudden geyser
#

You should be able to access module.exports.model as usual. If ACERTAINVALUE is like some variable, you may be able to use it directly rather than asking for module.exports.model.

celest schooner
#

wdym

#

btw nvm

#

you can just define a variable before

copper cradle
#

dude

#

you can literally do this

#
module.exports.someVariable = 45;

//Within the same file
console.log(module.exports.someVariable) // 45
celest schooner
#

or

copper cradle
#

n

#

o

celest schooner
#
let variable = 123
module.exports.var = variable
console.log(variable)```
copper cradle
#

dude

#

why are you even doing that

#

that's just as sm

celest schooner
#

its cleaner

copper cradle
#

it's not lmao

#

it adds an extra line

#

but hey

#

you do you

celest schooner
#

thats not what cleaner means

#

okay

exotic cradle
#

just out of curiosity, what hosts do you guys use?

#

I use, well, ima let my bot say it:

#

wing!host

#

dang

celest schooner
#

lol bots cant send messages here

exotic cradle
#

rip

celest schooner
#

just tell us

exotic cradle
#

Herok

#

u

celest schooner
#

o

#

what database do u use

exotic cradle
#

GitHub

celest schooner
#

thats not a database

exotic cradle
#

..

#

discord.js?

#

node.js?

#

idk

celest schooner
#

thats a library

#

like do you use json files sql mongodb etc.

exotic cradle
#

oh

#

json

celest schooner
#

but then how do you host on heroku

exotic cradle
#

..

#

i use github to bind it, idk, ask this guy https://www.youtube.com/watch?v=8qIsRzV0Hpg&t=190s

โ–บ HOST YOUR OWN DISCORD.JS BOT 24/7! - 2020! (UPDATED)

๐Ÿคฏ Join into our DashCruft Nation by Hitting that Subscribe button and Leaving a Like!

โ–บ Join into our Official Discord Server if you need Help!!
https://invite.gg/dashcruft

LINKS IN THE VIDEO:
1๏ธโƒฃ https://bit.ly/36yFi2...

โ–ถ Play video
celest schooner
#

No i mean like i thought file based databases dont work on heroku

exotic cradle
#

im confused

celest schooner
#

nvm

earnest phoenix
#

How they verify this man into bot developer

sudden geyser
#

welcome to dbl

ancient falcon
#

Wtf

earnest phoenix
#

I'm trying to make a meme bot (that uses reddit), but some of the subreddits have an NSFW warning page, which stops random-puppy from getting the images, how do i bypass that?

ancient falcon
#

are you using reddits api

earnest phoenix
#

na how do I use that

solid falcon
#

How do I get message object to get author id, server id, channel id on @bot.command()?
I'm using discord.py

slender thistle
#

ctx.message

clever vector
#

Hey Guys

#

how can i set the gif picture on the rightside

slender thistle
#

Thumbnail?

clever vector
#

Ya

slender thistle
#

Which library?

clever vector
#

discord.js

sand scroll
#

cuz if you dont know objects in an object oriented programming language you clearly been copy pasting this whole time
@opal plank so ever beginner is a copy-paster?

#

lmao

slender thistle
#

embed.setThumbnail

sand scroll
#

im pretty sure you don't do embed.setThumbnail

#

isn't it let whateverEmbed = new Discord.MessageEmbed().setThumbnail(ur thumbnail);

sudden geyser
#

embed would represent the embed instance.

earnest phoenix
#

-bots

gilded plankBOT
clever vector
#

-bots

gilded plankBOT
slender thistle
#

-botcommands @clever vector @earnest phoenix

gilded plankBOT
#

@clever vector @earnest phoenix

Hey! Bots aren't given permissions to send responses in this channel. Please use #commands or #265156322012561408 to run commands. In addition, bots with commonly used prefixes cannot read or send messages in any channel. This is done to prevent spam and bot abuse.

earnest phoenix
#

?

#

@slender thistle what?

slender thistle
#

Read Luca's message

earnest phoenix
#

its luca

slender thistle
delicate shore
#

can i change the pfp of my bot?

#

since it's in process of verification

clever vector
#

Guys can you help me get the link of this?

earnest phoenix
#

right click and copy the url awhat

clever vector
#

if i copy it the same

#

see

fervent goblet
#
https://media.tenor.com/images/b14284e6f4f9060022c11e10e12a2c56/tenor.gif
sudden geyser
south solstice
#

Hey I'm using Discord.py rewrite and was trying to see if it's possible to thread a command so while the command (the one in my case takes 49 secs(to be clear here it takes 49 sec for the math to finish before it replies) to reply back to) occurs a user would be able to type in the other commands that take less then a sec to reply to? been trying to find ways to cut the one commands time down but want this temp solution while I look into it.

earnest phoenix
#

@south solstice hey wait

#

you want the command to cut for 49 seconds?

south solstice
#

The command itself takes 49 secs to go through the math it needs (mostly because Raspberry Pi 3B CPU)

earnest phoenix
#

Oh

#

You need it to go faster?

#

Idk how

south solstice
#

I know it has while loops and that might be a good part of it

errant perch
#

how would i get a stocks price in discord.js?

crystal socket
#

using a api?

errant perch
#

anything would work

solid falcon
opal plank
#

@sand scroll take your complaints over to #general

sand scroll
#

hmm?

#

my complaints?

#

where?

#

oh, that

#
  1. that isn't off-topic, if anything you talking about him being a copy-paster is off topic
  2. it isn't a complaint, im pointing out something
    @opal plank
opal plank
#

you're complaining about my thinking, completely unrelated to the topic here

#

if you disliked something i said, take it to #general

sand scroll
#

oh yes, and your thinking is very on topic

cuz if you dont know objects in an object oriented programming language you clearly been copy pasting this whole time

opal plank
#

dude, im not engaging in an argument here, stop baiting and head over to offtopic if you wish to keep going

slender thistle
#

Why is that example loading an image from message content

solid falcon
#

Maybe using message.attachments can download an image from a user?

slender thistle
#

Sure

earnest phoenix
#

so im fixing my av command so that if no one is mentioned it displays the author's avatar instead, i tried to use if isinstance but didnt work
any ideas? also using dpy

wheat hornet
#

code

earnest phoenix
#

?

wheat hornet
#

send ur code

earnest phoenix
#

kk

#
    @commands.command(aliases=["avatar"])
    async def av(self, ctx, member: discord.Member):
        embed = discord.Embed(timestamp=ctx.message.created_at, color=0x2174b2)
        
        if isinstance(commands.MissingRequiredArgument):
            embed.set_image(url=f'{ctx.author.avatar_url}')
        else:
            embed.set_image(url=f'{member.avatar_url}')
        await ctx.send(embed=embed)```
#

wait ill try using try and except instead

#
   @commands.command(aliases=["avatar"])
    async def av(self, ctx, member: discord.Member):
        embed = discord.Embed(timestamp=ctx.message.created_at, color=0x2174b2)
        
        try: 
            embed.set_image(url=member.avatar_url)
        except isinstance(commands.MissingRequiredArgument):
            embed.set_image(url=ctx.author.avatar_url)
        
        await ctx.send(embed=embed)```
#

didnt work

#

@wheat hornet u here?

restive pebble
#

cool

viral iris
#
.addFields(
                { name: "Current build:", value: json.data.build}
)

how to make : json.data.build
looks like json.data.build

ancient falcon
#

why would embed.set_image(url=member.avatar_url) error MissingRequiredArgument???

wheat hornet
#

@earnest phoenix use

message.author.avatar_url
ancient falcon
#

(ctx.message actually ^)

viral iris
#
.addFields(
                { name: "Current build:", value: json.data.build}
)

how to make : json.data.build
looks like json.data.build

swift void
#

I can't seem to fix my

Error: StatusCodeError: 403 - ""
    at C:\Users\Administrator\Desktop\Team Thunder\node_modules\youtube-info\index.js:101:15
    at tryCatcher (C:\Users\Administrator\Desktop\Team Thunder\node_modules\bluebird\js\release\util.js:16:23)
    at Promise._settlePromiseFromHandler (C:\Users\Administrator\Desktop\Team Thunder\node_modules\bluebird\js\release\promise.js:547:31)
    at Promise._settlePromise (C:\Users\Administrator\Desktop\Team Thunder\node_modules\bluebird\js\release\promise.js:604:18)
    at Promise._settlePromise0 (C:\Users\Administrator\Desktop\Team Thunder\node_modules\bluebird\js\release\promise.js:649:10)
    at Promise._settlePromises (C:\Users\Administrator\Desktop\Team Thunder\node_modules\bluebird\js\release\promise.js:725:18)
    at _drainQueueStep (C:\Users\Administrator\Desktop\Team Thunder\node_modules\bluebird\js\release\async.js:93:12)
    at _drainQueue (C:\Users\Administrator\Desktop\Team Thunder\node_modules\bluebird\js\release\async.js:86:9)
    at Async._drainQueues (C:\Users\Administrator\Desktop\Team Thunder\node_modules\bluebird\js\release\async.js:102:5)
    at Immediate.Async.drainQueues [as _onImmediate] (C:\Users\Administrator\Desktop\Team Thunder\node_modules\bluebird\js\release\async.js:15:14)
    at processImmediate (internal/timers.js:456:21)

error, no matter how hard I try

viral iris
#

please

swift void
#

I've tried regenerating the API key.

ancient falcon
#

@wheat hornet (however ctx.author works too)

wheat hornet
#

which api

wheat hornet
#

@swift void which api are u using

swift void
#

@wheat hornet youtube-info + simple youtube api

ancient falcon
#

@earnest phoenix isinstance takes two arguments

#
   @commands.command(aliases=["avatar"])
    async def av(self, ctx, member: discord.Member=None):
        embed = discord.Embed(timestamp=ctx.message.created_at, color=0x2174b2)
        
        if not member:
            embed.set_image(url=f'{ctx.author.avatar_url}')
        else:
            embed.set_image(url=f'{member.avatar_url}')
        await ctx.send(embed=embed)```
that's probably what you're trying to do ^ @earnest phoenix
viral iris
#
.addFields(
                { name: "Current build:", value: json.data.build}
)

how to make : json.data.build
looks like json.data.build

ancient falcon
#

isinstance is just a built in function that checks if an object is a certain class or a subclass of that class

#

for example you can do

print(isinstance(5, int))
>> True```
outer niche
#
    self._overwrites.append(_Overwrites(id=overridden_id, **overridden))
TypeError: __new__() got an unexpected keyword argument 'deny_new'```
earnest phoenix
#

@ancient falcon @wheat hornet thanks i used or and set member automatically to None but thanks anyways

#

:v

restive pebble
#

shard

ancient falcon
#

magic thing called sharding

earnest phoenix
#

lmaox

outer niche
tawdry locust
#

from the few moments ive browsed issues through github, jsut update discord py

#

and it should be fixed

icy glen
#

Hi guys, if I add setTimeouts to delay the time between each message to avoid ratelimiting, will my bot be accepted?

pure sun
#

Hello

#

or what?

wide ridge
#

shard
@restive pebble I have 40 shards @ancient falcon

pure sun
#

this thing takes my bot down

#

on both heroku and normal console

restive pebble
#

oh

pure sun
#

idk that hting is happening

#

if anyone can help

#

yo <@&304313580025544704> i am using discord.py and that error shuts down my bot

#

can anyone help

modern sable
#

-atmods@pure sun

glad charm
#

Why

scenic kelp
#

How are we supposed to help

#

we are moderators

modern sable
#

-atmods

gilded plankBOT
#

Please do not mention (ping) more than one or two moderators for help, unless there is an emergency.

Here are some examples of emergencies:

  • Raids / Multiple members mass spamming.
  • Severe disruption of Discord's ToS (NSFW content, etc)
  • Anything that requires more than 2 moderators to handle.
craggy pine
#

Bro.

glad charm
#

@pure sun write better code, there's the answer.

pure sun
#

that code was working sinc e1 month

green kestrel
#

Wut

pure sun
#

and the bot is in 55 servers

scenic kelp
#

Clearly it wasn't if it's erroring

pure sun
#

now it starts and goes down

glad charm
#

Taking a shot for the ping brb.

scenic kelp
#

Wrap it in a try except block then

pure sun
green kestrel
#

It's 6.40am, sure we will all get up to help fix your code

pure sun
#

can ya'll stop being sarcastic, that's clearly not helping

craggy pine
#

Why not just go to discord.pys discord server instead of pining 30 people. It's not Top.gg related.

oak cliff
#

Maybe if you didnt ping 24 of us at 1 am we wouldnt be sarcastic

glad charm
#

You pinged over 20 people for something you could have googled.

pure sun
#

not my fault ya'll active at 1am

oak cliff
#

I wasnt until u pinged me

craggy pine
#

Not our fault we're not here to help fix your bot.

pure sun
#

You pinged over 20 people for something you could have googled.
@glad charm google dont have that solution

scenic kelp
#

You're passing too many arguments

tawdry locust
#

Go to github that has an issue there already

sonic lodge
#

use setTimeout() @earnest phoenix

scenic kelp
#

does it take a number or a string

sonic lodge
#

it accepts a callback function to execute after a certian amount of milliseconds

scenic kelp
#

I don't think you need settimeout for a delete

sonic lodge
#

they want to delete it after a delay

scenic kelp
#

pass it a number

lusty quest
#

@icy glen send them in one message instead of individual ones

scenic kelp
#

{timeout: <Number>}

sonic lodge
#

๐Ÿ˜ฎ the more you read the docsโ„ข๏ธ

scenic kelp
#

read the docsโ„ข๏ธ

sick cloud
#

imagine using light theme docs tho parm

scenic kelp
#

i never use the docs so

pure sun
#

-discord

#

-discord.py

#

-help

#

-help

#

-atmost

frank jackal
#

What you trying to do....

glad charm
#

That's also a common prefix it won't work here.

pure sun
#

my bot makes a problem

#

which is not usual

#

it runs for few seconds

#

then goes down

#

and the error is caused by bot.run

tawdry locust
#

Update the library

pure sun
tawdry locust
#

Yeah, similar thing happened to me and look at github issues and they said to just update

#

Been working since then

pure sun
#

mine is updated

viral iris
#
 .addField("Dynamic Keys:", `${jo}` /n `${joo1}` , true)

n is not defiend

#

can any1 help?

earnest phoenix
swift void
#

Gettin this error ReferenceError: API is not defined

viral iris
#
 .addField("Dynamic Keys:", `${jo}` /n `${joo1}` , true)

n is not defiend

sonic lodge
#

are you trying to stick a new line in between ${jo} and ${joo1}?

viral iris
#

yes

lusty quest
#

.addField("Dynamic Keys:", `${jo}\n${joo1}` , true)

sonic lodge
#

just type `${jo}\n${joo1}`

viral iris
#

ok thx

sonic lodge
#

@swift void read the error

swift void
#

@sonic lodge API.getVideo('link')
.then(video => {
if (video) console.log(The video's title is ${video.title});
else console.log('video not found :(');
})
.catch(console.error);

#

rip api

sonic lodge
#

so define API

swift void
pale vessel
#

and? define it

sonic lodge
#

they assume you already required the module somewhere

swift void
#

alright, so I'll have to require the module at the top of the script

solid falcon
#

__new__() got an unexpected keyword argument 'deny_new'

Can someone explain?

viral iris
#
 .addField("Dynamic Keys:", `**${jo}** \n `\`\`${joo}\`\`` \n **${jo1}** \n `\`\`${joo1}\`\`` \n **${jo2}** \n `\`\`${joo2}\`\`` , true)

#

what's wrong ?

outer niche
#

That should fix your problem

solid falcon
#

@outer niche Hum, oke

sonic lodge
#
`**${jo}** \n `\`\`${joo}
^             ^
open tick     close tick, end of template literal
               ^
               unexpected backslash
viral iris
#

so how to fix it ?

sonic lodge
#

i'm not sure what you want to display

viral iris
#

1min

sonic lodge
#

i'd assume you need to escape this initial closing tick

viral iris
#

like this

sonic lodge
#
`**${jo}** \n \`\`\`${joo}
^             ^^
open tick     escaped closing tick
viral iris
#

@sonic lodge can u do it to me like the pic ?

sonic lodge
#

that's my solution ^

viral iris
#

how to do it like this if there's error ?

sonic lodge
#

?

viral iris
#

see the pic

pale vessel
#

escape the backticks

viral iris
#

what?

pale vessel
viral iris
#

how to do pakchunk1000-WindowsClient.pak

#

like the picture ?

sonic lodge
#
`**${jo}** \n `\`\`${joo}\`\`` \n
^             ^              ^
open tick     unescaped backticks

just like how you can't do this:
'It's supposed to end early'

you have to escape the quote in the middle:
'It\'s supposed to end early'
lusty quest
#

are you sure it is this line?

#

where is coll defined?

#

is messageCollection a valid collection?

#

is channelMessages a array?

#

idk what the issue could be. i probably would look throu 10 years worth of Stackoverflow paged for a solution

solid falcon
#

Can discord.py use exec() function at @bot.command()?

I already try it, but always getting error from discord exception or invalid syntax...

pure lion
#

Sup, when I make a cname record for my website what do I put in the host field? (Using namecheap dashboard)

wary flame
#

The url

pure lion
#

Okay got it

#

Entire http URL?

wary flame
#

But do you have a domain to your web server?

#

Yes

#

Entire http url

#

But if you have an ip address to your web server (that they want you to use) you should use an A record

pure lion
#

Do I use the webserver domain or the namecheap domain?

#

Also it's specifically asking for cname

wary flame
#

In you CNAME record for your namecheap domain you put the webserver domain, this will make sure your domain redirects you to your webserver

pure lion
#

Ok got it

#

It doesn't like it if I put http://

wary flame
#

Does it require you to use https?

pale vessel
#

you're not supposed to dice lol

pure lion
#

Okay sick

#

Time to wait """"24 hours"""""

wary flame
#

Time to wait """"24 hours"""""
If you're lucky it will only take 5 minutes, IF you're lucky

pure lion
wary flame
#

You mean

#

Host is your domain, not your webserver host

#

If you want to connect alebot.epizy.com to the root of your domain enter your domain name

pale vessel
#

free host is bad

wary flame
#

Yes

#

But that is not the issue

pale vessel
#

especially infinityfree

pure lion
pale vessel
#

they say it's unlimited storage, but that's obviously not true

#

they can suspend your domain or account whenever they want without reason

wary flame
slender wagon
#

Freenom?

wary flame
#

No

#

Namecheap

honest perch
#

Bad

normal kraken
#

Freenom is ment to mask a ip it isnt ment for actual domain usages

#

All free domains are ment to mask a users IP

pale vessel
#

you can though...

#

you're picking the wrong option

#

use the dns/change the nameservers, don't forward or mask

normal kraken
#

Namecheap in this case is a legit domain service that is used to mask your ip OR to set a domain for your site

pale vessel
#

freenom can do that too

normal kraken
#

tbh domains is a thing that you choose,

pale vessel
#

but heavily discouraged

honest perch
#

Just use cloudflare ffs

normal kraken
#

well freenom is mainly ment for masking ip's

pale vessel
#

they can take away your domain when it hits high traffic

normal kraken
#
  • freenom dns's and etc are easy to hack into
honest perch
#

Doubt

slender wagon
#

I refreshed my page 10 times and boom

#

24 hours restricition

normal kraken
#

@honest perch you can doubt that but trust me, my friend used to be a hacker he hacked into so much freenom domains and just went from their

#

and trust me the people he hacked were not happy campers

honest perch
#

Seen worse

normal kraken
#

wouldn't deny it

honest perch
#

I'm guessing its not a direct problem with freenom but the users passwords are weak

normal kraken
#

That and freenom's api is easy to get into

fast quail
#
    self._overwrites.append(_Overwrites(id=overridden_id, **overridden))
TypeError: __new__() got an unexpected keyword argument 'deny_new'
#

I got that while starting my bot

#

I looked on google but dind't find anything usefull

#

oh I just had to update libray

solid falcon
#

How do I send a message to a specific channel using discord.py?

I tried

ch = bot.get_channel("CHANNEL ID")
await ch.send("Sent!")
```it's returned None
#
    self._overwrites.append(_Overwrites(id=overridden_id, **overridden))
TypeError: __new__() got an unexpected keyword argument 'deny_new'

@fast quail Update your discord.py to latest

fast quail
#

oh I just had to update libray
@fast quail

sick fable
#

Guys, how to get your api token?

#

I need my Spotify token

pure lion
#

For?

#

Oh

#

There's probably a website somewhere

sick fable
#

Can you help?

pure lion
#

No idea :D

sick fable
#

Np

mortal dagger
#

@sick fable dm me

sick fable
#

Can somebody create a music bot for me?

#

๐Ÿฅบ ๐Ÿฅบ

pure lion
#

pay me

sick fable
#

.

#

Free?

ancient falcon
#

@solid falcon yeah that's how you do it discord.Client.get_channel(id: int) returns an abc.GuildChannel which has the send coroutine

sick fable
#

Not a problem if you guys say "no"

#

.

pure lion
#

no x)

solid falcon
#

@solid falcon yeah that's how you do it discord.Client.get_channel(id: int) returns an abc.GuildChannel which has the send coroutine

@Kyando#0001 so, get_channel(int) or str?

ancient falcon
#

int

solid falcon
#

Ok thanks

ancient falcon
sick fable
#

no x)
@pure lion np

#

๐Ÿ™‚ ๐Ÿ™ƒ

ancient falcon
#

you probably wanna check if its None to catch any error

jaunty junco
#

quick discordia question, how do i use the event

memberJoin
stiff stream
#

some one know how to make this an Embed?

pure lion
#

which part of "this"

marble scaffold
#

Does anyone know how to do a custom status without quick.db

stiff stream
#

this command send or heads or tails, its random, and i want it to say the word in Embed
@pure lion

#

Does anyone know how to do a custom status without quick.dp
@marble scaffold ```bot.on('ready', () =>{
console.log('this bot is online')
setInterval(() => {
bot.user.setActivity(here the status , {type: 'WATCHING'});
}, 60000);

})```
marble scaffold
#

Ty

pure lion
#

@stiff stream do you know how to make an embed?

stiff stream
#

yes

pure lion
#

Then it should be easy for you

#

Learn js please

stiff stream
#

k

earnest phoenix
#

why are you using includes

#

why are you creating an array

jaunty junco
#

how to use the event "memberJoin"? (discordia btw)

marble scaffold
earnest phoenix
#

well define it then

marble scaffold
#

That doesn't help lmao

pure lion
#

what is Client() defined as?

marble scaffold
#

Oh yeah ty

earnest phoenix
#

That doesn't help lmao
@marble scaffold
what do you expect me to say? this is the very basics of js lol

"i want to cook a meal but i don't have food to cook with"
"then go buy some food"
๐Ÿ‘๏ธ๐Ÿ‘„๐Ÿ‘๏ธ

sonic lodge
#

did you copy paste the code directly from up there

pure lion
#

Sup so the cname thing isn't working and it's been a while

earnest phoenix
#

Anybody experiencing the dispatchers being null on discord.js

pure lion
#

Can't say I am

earnest phoenix
#

Even if it's not null, the StreamDispatcher doesn't play anything, wasting buffers for no reason

#

This is strange

pure lion
#

For music?

earnest phoenix
#

For anything to play

pure lion
#

Any errors at all or just null :/

earnest phoenix
#

It's either null or StreamDispatcher doesn't play anything, as not accepting buffers for an unknown reason

#

It just happened today, i didn't change anything

#

Just woke up and tried to play something

pure lion
#

WAIT LEMME TEST MINE

#

oof no caps*

#

mine is working fine :///////////////////////////

#

but can anyone help me with setting up cname shit

earnest phoenix
#

Well if discord went full drunk mode on me again and dispatchers stay null, i gotta remove my entire music category... Sadge

#

Discord is gay

pure lion
#

:cri:

placid iron
#

Active else getting deny new error when starting their bot

honest perch
#

No

placid iron
#

Ah ok

pine raven
#

how do you code an alice?

earnest phoenix
#

what

hasty sparrow
#

@pure lion What's wrong?

pure lion
#

just not working

#

not even sure how to set it up

hasty sparrow
#

Have you set the A (and optional AAAA) records?

pure lion
#

nope, it just asked for cname

hasty sparrow
#

Who or what asked for cname?

pure lion
#

infinityfree ssl stuff

delicate shore
#

This happens to me a lot

#

How to fix this ?

hasty sparrow
#

You got a VPS? If so, why not host the website there?

delicate shore
#

It many time gives blank

pure lion
#

No vps

hasty sparrow
#

How you going to host your bot?

pure lion
#

I'm hosting it on my pc

hasty sparrow
#

@delicate shore Check the link, Discord may have trouble with certain image extensions

delicate shore
#

@delicate shore Check the link, Discord may have trouble with certain image extensions
@hasty sparrow wait lemme send code

#
  
  if(command === "pewdiepie"){
    

        if (pew.has(msg.author.id))
      return msg.reply(
        `**You are on cooldown you can use this cmd once in 3 seconds. This is to prevent rate limting**`
      );
   
    const subReddits23 = ["PewdiepieSubmissions"]
    const random23 = subReddits23[Math.floor(Math.random() * subReddits23.length)];
    const img = await randomPuppy(random23);

    const embed = new Discord.MessageEmbed()
    .setImage(img)
    .setColor("RANDOM")
    .setTitle(`From /r/${random23}`)
    .setURL(`http://reddit.com/${random23}`)

    msg.channel.send(embed);
msg.channel.send("**If you don't get a meme try command again in 3 seconds because our API has been malfunctioning now-a-days**")
  
        pew.add(msg.author.id);
        setTimeout(() => {
          pew.delete(msg.author.id);
        }, 3000);
      ;
    console.log();
  }
#

i use random puppu

hasty sparrow
#

Check the image itself, not your code

delicate shore
#

i do

earnest phoenix
#

random-puppy package is no good for this

delicate shore
#

random-puppy package is no good for this
@earnest phoenix any suggestion

earnest phoenix
#

Use node-fetch

delicate shore
#

Check the image itself, not your code
@hasty sparrow they are mostly GIF which are causing problems

#

Use node-fetch
@earnest phoenix but then i need to fetch an api right ?

#

for meme

earnest phoenix
#

reddit itself has an api

delicate shore
#

and sometimes it gives nsfw memes

#

reddit itself has an api
@earnest phoenix wait what

#

where?!

sonic lodge
#

search reddit api

earnest phoenix
#

You can filter the data of the children given by the api to posts that aren't nsfw

delicate shore
#

ok

earnest phoenix
#

Api
https://www.reddit.com/r/<Subreddit>.json?sort=<top or any sort you want>&t=<week or month>

delicate shore
#

ok

#

but it gives somthing like

earnest phoenix
#

Upload to pastebin

hasty sparrow
#

*hastebin

earnest phoenix
#

both exists but yea

delicate shore
#
function loadCuties() {
  fetch('https://www.reddit.com/r/aww.json?limit=100&?sort=top&t=all')
    .then(res => res.json())
    .then(json => json.data.children.map(v => v.data.url))
    .then(urls => postRandomCutie(urls));
}

function postRandomCutie(urls) {
  const randomURL = urls[Math.floor(Math.random() * urls.length) + 1];
  const embed = new Discord.MessageEmbed
   .setImage(randomURL) 
    message.channel.send(embed);
}```
#

something like this?

#

it will be

earnest phoenix
#

pastebin is the twitch thot version of text uploaders

delicate shore
#

bruh

#

pls tell

earnest phoenix
hasty sparrow
#

Try it out and see

delicate shore
#

ok

hasty sparrow
#

Haha

delicate shore
#

lemme

#

see

#
  if(command === "pewdiepie"){
    

    function loadpew() {
  fetch('https://www.reddit.com/r/PewdiepieSubmissions.json?limit=100&?sort=top&t=all')
    .then(res => res.json())
    .then(json => json.data.children.map(v => v.data.url))
    .then(urls => postrandompew(urls));
}

function postrandompew(urls) {
  const randomURL = urls[Math.floor(Math.random() * urls.length) + 1];
  const embed = new Discord.MessageEmbed()
  .setTitle("e")
   .setImage(randomURL) 
  .setColor("RANDOM")
    msg.channel.send(embed);
}
    
  }```
#

this is not working

#

no error

#

no nothing

earnest phoenix
#

Of course it won't, it's just static functions lying there, you gotta execute the functions however

#

that and

#

debug

#

literally you've been told over a couple of billion times to debug when something isn't running accordingly

woven sundial
#

Heyo, what will be
member.roles.map(roles => `${roles.name}`).join(", ")
in djs 12?

earnest phoenix
#

Now uses managers,
roles.cache and you don't need to use template literals in that case if it's just gonna be name and not anything else

woven sundial
#

oh gotcha thanks!

hidden lynx
#

@twilit rapids sorry for the ping. But you might wanna change this :) Its on the chip bot website:

twilit rapids
#

Are you sure

hidden lynx
#

Now its updated๐Ÿ‘ did you change it or was i being stupid?

twilit rapids
#

I didn't change anything

#

Interesting Thonk

hidden lynx
#

huh aight. Something must have gone wrong on my side. Sorry for disturbing

twilit rapids
#

Don't worry about it

royal pawn
#

Hello,
I've this code right here which contains 2 functions:

function1(){
  // do something
};

function2(){
  // do something else but slightly different from 1
};```The problem is that function 2 keeps executing right after function 1 even if I add `return;` or anything and I don't want that to happen.
Is there any way to prevent that? What is missing or wrong in this? (there's a 200 lines code in each function)
hidden lynx
#

you can remove the semicolons after the bracket blocks but that shouldnt be the problem

opal plank
#

return would be an illegal statement

#

returns needs to be executed on a function

#

function1(){}
return
function2(){}

hidden lynx
#

Make sure its not written like so:

(function() {

})();

cause this would execute straight away

opal plank
#

this is not doable

#

also, functions are called

#

neither of those functions will run unless you call them

#

function func1(){}
func1()

royal pawn
#

The 2nd function runs right after 1st function even if not called

opal plank
#

its declaring it

sullen salmon
opal plank
#

functions dont call themselves

slender thistle
#

Show full traceback

still merlin
#

I'm trying to get a users highest role, I can get the author's highest role but not a mentioned user because its coming out as role isnt defined, Does anyone know how to get a mentioned users highest role

slender thistle
#

get member version of the mentioned user

still merlin
#

in discord.js

sullen salmon
still merlin
#

and I removed the message but that also gave role isnt defined

earnest phoenix
#

users dont have roles

#

members do

still merlin
#

Ohk

#

thanks

opal plank
#

@royal pawn ```js
function A1() {
console.log(1)
}
function A2() {
console.log(2)
}
A1() // logs 1
// nothing else happens cuz i didnt call A2()

slender thistle
#

Internal error, see official d.py official server or GitHub issues if anyone else reported this @sullen salmon (chances are someone already did and you need to wait until it's fixed)

royal pawn
#

Thanks for your replies, guys, I fixed it thumbsup

opal plank
sullen salmon
#

What does internal error mean

earnest phoenix
#

exactly what it says

sullen salmon
#

Do you have a link do the d.py server?

#

exactly what it says
@earnest phoenix fuck off lol

marble juniper
#

rude

earnest phoenix
#

it means exactly what it says ๐Ÿ‘๏ธ ๐Ÿ‘„ ๐Ÿ‘๏ธ

slender thistle
sullen salmon
#

Thanks

slender thistle
sullen salmon
#

Ooh

#

Aight updating worked, thanks @slender thistle

daring beacon
#

There a way to find out how many times someone invite your bot from this bot site? Or to see how many times people have clicked on the link?

slender thistle
#

A custom webserver (preferably hosted under a secure domain) that has an incremented value each time someone visits a certain endpoint

#

The endpoint will then redirect to the OAuth URL

pure lion
#

Basically too much work

#

x)

daring beacon
#

oof

slender thistle
daring beacon
#

hard pass thought you guys might have added something

slender thistle
#

There's no really reliable way to implement that

daring beacon
#

yh dw

signal wagon
#
if (userUsedLink) {
    count++;
}
#

There

daring beacon
#

xD

signal wagon
#

I did it for you

daring beacon
#

Thank you my friend

#

not a single liner doe

pure lion
#

Anyway I'm going to make a ray caster game engine in C so I can learn higher languages byebye love all of you the mode are cute blah blah blah

daring beacon
#
if (userUsedLink) count++;
#

๐Ÿ˜‰ xD

signal wagon
#

Stinky

pure lion
#

shouldnt it be ++count

daring beacon
#

hehe

signal wagon
#

++count increments the value, then executes the line it is in, count++ executes first, then increments

pure lion
#

Oh thats cool

signal wagon
#

e. g.

int x = 3;
System.out.println(++x);

would print 4 while

int x = 3;
System.out.println(x++);

would print 3, but in both cases x is 4 after that line

#

Man writing code on mobile sucks ass xD

pure lion
#

Is that java?

signal wagon
#

Yes

pure lion
#

Can't tell, never used system.out

#

Ok in guessed that

#

Lmao

signal wagon
#

Just prints to console lol

pure lion
signal wagon
#

Yes

#

The default input stream

#

Can use that for e. g. reading from the console

#

In combination with a scanner

pure lion
#

Omg windows fs has crashed twice in the past hour

signal wagon
#

Poggers

pure lion
#

Also yay I leaRnt jAVa X))))

signal wagon
#

Hahaha

meager marsh
#

Guys, I'm at a point where I need to question my design and get some feedback.
My bot does some automatic voice channels creation, generally you would configure it once and forget about it. When I just made it, you would do it by typing something like !vm register <channelID/name> to track a channel. Now I switched to using an embed with reactions, to reduce the amount of typing you would need to do, screenshot attached. I think it's easy to use and looks nice. But I kept the legacy methods to type in things manually.
Now the question - those legacy methods require a lot of upkeep and additional work, and I'm not sure if anybody would use it. Data says that most people just use embeds, and those who don't - just didn't they can use them. Currently, it's a difference between !vm template "272764566411149314 272764566411149314 272764566411149314" %nickname's% channel - playing %game%, and !vm template %nickname's% channel - playing %game% and clicking some buttons.
Should I spend additional time on text commands or should I just focus on embed design and ease of use? hewp

signal wagon
#

oop

#

Yep not reading that now

hasty sparrow
#

Paginated embeds for guilds with large channel counts are tedious

still merlin
#

Can I have some help with prettiercode, I npm installed it to my project and got it from the extensions page but my code is default visual studio code still. (version, "prettier": "2.0.5",)

prime haven
#

C# before you ask about js canvas

honest perch
#

looks nice

prime haven
#

had to spin up a CDN to turn an image to a link, cuz discord wont allow b64 lol

opal plank
#

@still merlin wait what

#

im unsure what prettiercode is, but i assume you looking for a linter?

honest perch
#

prettier

#

no

#

bad

#

it destroyed my code

opal plank
#

linter

#

pretifier

#

beutifier

#

those are your options, basically

still merlin
#

im unsure what prettiercode is, but i assume you looking for a linter?
@opal plank No- I already have a linter. Prettier code makes code colourful

honest perch
#

no

#

it formats it

opal plank
#

yes

#

unsure why you are looking for colorful code though

tame shuttle
#

I like having each character a random colour

opal plank
#

ranibow code

honest perch
#

this good though

still merlin
#

I want rainbow code hh

honest perch
#

then get a theme

still merlin
#

Ok

opal plank
#

im actually concerned if you are looking for rainbow code

still merlin
#

.-.

opal plank
still merlin
#

not like that

honest perch
#

ive never used a linter lmao

still merlin
#

just not default visual studio code

opal plank
#

lmao

honest perch
#

then get a theme

#

best theme imo

opal plank
#

too cold for my taste

#

im more of a vibrant type

#

tbh the normal colour from vsc is quite dcent

honest perch
#

i like it because its not too vibrant

#

pretty chill

opal plank
#

as long as my background is dark and the colours arent obnoxiously bright, im down with most stuff

jaunty junco
#

How do i use the "memberJoin" event in order to add a role to the members who join the discord server? (discordia)

#

i just want to know how to use the memberJoin event really

slow cave
#

anybody have a kick ban script thats work, ive tried liek 5 and none work

jaunty junco
#

anybody have a kick ban script thats work, ive tried liek 5 and none work
@slow cave library?

#

like discord.js?

slow cave
#

?? wdym

still merlin
#

Read the docs @slow cave

#

if you expect to be spoonfed you wont be

slow cave
#

kk I just joined the server

#

f

jaunty junco
#

@slow cave i have them but they are for the discordia library

still merlin
#

is .discriminator a users tag (like #9825) or would that have to be <defined mention user as>.tag or <defined mentioned user as>.discriminator

#

in discord.js

honest perch
#

how do i get rid of the blue

still merlin
#

I think thats box shadow

honest perch
#

im aware

still merlin
#

so just remove the box shadow

honest perch
#

no because then it looks bad

unique nimbus
#

change the shadow colour

opal plank
#

nvm

honest perch
#

good point peter

opal plank
#

thats user obj @still merlin

pure lion
#

Whoa that's such a high effort user info thi-

opal plank
earnest phoenix
#

oh my

#

that's super high effort code

pure lion
#

*casually making a game engine*

opal plank
#

casually screaming porting my code to Typescript

pure lion
#

Shit I forgot to put ;

earnest phoenix
#

who use type script, when we have javascript

#

actually

#

who use javascript

slender thistle
#

A friend of mine uses TS for frontend

earnest phoenix
#

when we have actionscript

opal plank
#

Ts from what ive seen is much better than js

pure lion
#

Who the fuck is actionscript

opal plank
#

friend helped me port it

earnest phoenix
#

ActionScript is an object-oriented programming (OOP) language that is designed specifically for Web site animation. Originally released with Macromedia Flash 4 and enhanced for Flash 5, ActionScript is a sophisticated version of the script language introduced in Flash 3.****

opal plank
#

and ts notified me of like 40 errors that js didnt caught

#

cuz js just lets you do whatever

earnest phoenix
#

traveloga?

opal plank
#

took me an hour to debug the all the code

earnest phoenix
#

so how do i switch to TS? mmLol

pure lion
#

Easily

opal plank
#

you start by crying

#

a lot

earnest phoenix
#

WAHHH WAHH MOMMY

opal plank
#

im using lax Ts, which is basically js

#

though i did change some tsconfigs

earnest phoenix
#

but relaxed

opal plank
#

i see the IQ here going down with every joke

#

interfaces and some syntax definetly gave me a bit of trouble

#

specially cuz now im using ES2020

#

i was skimming thru the docs and theres quite a bit of different stuff

pure lion
#

TS(tittyscript) is an esolang that consists entirely of (, ., And )

earnest phoenix
#

are there any coding language that use human language?

opal plank
#

Typescript is racist Js, change my mind

pure lion
#

I don't think I want to

opal plank
#

lmao

earnest phoenix
#

are there any coding language that use human language?
@earnest phoenix lmao sure

slender thistle
#

Could make an interpreter

earnest phoenix
#

good idea

#

humanscript

#

No

opal plank
#

Roblang

earnest phoenix
#

That will fuck up things

opal plank
#

Roblox lang

earnest phoenix
#

Human++

#

("Human lang")

signal wagon
earnest phoenix
#

Heck yeah

opal plank
#

English.en

#

name it english

earnest phoenix
#

English++

opal plank
#

EnglishScript

earnest phoenix
#

YES

#

GOOD IDEA

opal plank
#

English.en

earnest phoenix
#

I gotta go coding

#

cya

opal plank
#

cya in 10m once you figure thats harder than it seems

earnest phoenix
#

dude it's easy

#

englishscript use human mind to compile it

#

so i need to just make docs

still merlin
#

Can I have some help please, I've got 2 issues in my embed. The nickname shows undefined but I'm nicked as Henry

#

ive used, .addField("Nickname", user.displayname)

pale vessel
#

displayName

still merlin
#

oh thanks

pale vessel
#

displayName is a member property, no?

still merlin
#

second my thumbnail isnt showing up o.o
.setThumbnail(user.displayAvatarURL)

earnest phoenix
#

Stop copying then

#

And go to thd docs

#

You are watching a video of discord js 11

#

And i know exactly which one you are watching

opal plank
#

caught red handed

still merlin
#

what no I'm not I use message.author.displayAvatarURL for my avatar command?

#

And this was from the docs

pale vessel
#

lmao exposed

earnest phoenix
#

Its not from thw docs i know you are watching a video

opal plank
#

thats a method

#

not a property

earnest phoenix
opal plank
#

thats why its not working

#

displayAvatarURL this is not a property

earnest phoenix
#

It works in discord js 11

opal plank
#

dont use v11

earnest phoenix
#

I watched a video like a year pr sometime ago

opal plank
#

its getting deprecated

earnest phoenix
#

There's a lot of changes between v11 and v12

opal plank
#

and wont work

earnest phoenix
#

He is watching the same video

#

Ikr i use v12

#

v11 will stop working on October 7th of 2020

#

When i get back on my pc ill give you my embed code @still merlin

still merlin
#

I'm a she, Don't assume genders, Second I'm not watching a video, Three don't spoonfeed me

earnest phoenix
#

๐Ÿ‡จ ๐Ÿ‡ด ๐Ÿ‡ด

#

๐Ÿ‡จ ๐Ÿ‡ด ๐Ÿ‡ด ๐Ÿ‡ฎ

#

@still merlin <= 5Head

pale vessel
#

hotpokket

signal wagon
#

lmao

digital ibex
#

quick question

signal wagon
#

if you don't want help don't ask

digital ibex
#

how can i dm a user a message?

earnest phoenix
#

@still merlin <= :5Head:
@earnest phoenix i cant agree more

signal wagon
#

what library @digital ibex

earnest phoenix
#

@digital ibex <User>.send() ?

pale vessel
#

eris

digital ibex
pale vessel
#

oh lmao

digital ibex
#

doesn't say how 2 send

#

no library

earnest phoenix
#

Oof

#

She literally just asked for help and then said dont do it oof

#

Because she doesn't want to be spoonfed

signal wagon
#

dOnT aSsUmE mY gEnDeR

pale vessel
#

okay chill

earnest phoenix
#

Because she doesn't want to be spoonfed
@earnest phoenix well i said ill give you my embed code which would fix her problem