#development

1 messages · Page 1575 of 1

earnest phoenix
#

but*

#

if i give it manage message perm

#

it works

solemn leaf
#

Omg we dont have any resources

#

To know what you are doing wrong

earnest phoenix
#

no errors come up either

solemn leaf
#

We don't care

#

We need to see your code

earnest phoenix
#
@client.group(invoke_without_command=True, aliases=['cmd', 'commands', 'Help','HELP'])
@commands.cooldown(1, 10, commands.BucketType.user)
async def help(ctx):
    embed = discord.Embed(
        colour = discord.Colour.red()
    )
    embed.set_author(name = 'Agent 47 Help')
    embed.add_field(name = 'Prefix setup', value = '`?help Prefix`', inline=True)
    embed.add_field(name = ':scales: Moderation :scales:', value = '`?help Mod`', inline=True)
    embed.add_field(name = ':tada: Giveaways :tada:', value = '`?help Giveaways`', inline=True)
    embed.add_field(name = ':tools: Utility :tools:', value = '`?help Utility`', inline=True)
    embed.add_field(name = ':money_with_wings: Crypto :money_with_wings:', value = '`?help Crypto`', inline=True)
    embed.add_field(name = ':information_source: Bot info :information_source:', value = '`?help Info`', inline=True)
    embed.set_footer(text='Made by H I T M A N#8128')
    await ctx.message.delete()
    await ctx.send(embed = embed)```
pale vessel
#

oh lord please make a dynamic help command

viscid thistle
#

at=error code=H14 desc="No web processes running" method=POST path="/dblwebhook" host=python-bot-69.herokuapp.com request_id=8d419c85-3215-4aa0-ad97-c641cada6851 fwd="165.22.130.154" dyno= connect= service= status=503 bytes= protocol=https
I'm getting this error when using a heroku webhook

earnest phoenix
solemn leaf
#

Flaze know any api or npms that can retrive random images or gifs from query

marble juniper
# earnest phoenix why??

a dynamic help command saves you time since you don't have to add new commands to the help command everytime

earnest phoenix
#

yh but will that fix the problem?

#

my problme is when the bot has no permissions, the help command doesnt work

marble juniper
#

not really has to do with your problem but you should do it anyways

#

you need to catch the error

earnest phoenix
#

only command that works is the changeprefix command when it has no permissions

marble juniper
#

idk how to catch errors in python

#

lol

earnest phoenix
# earnest phoenix why??

the same reason as to why you wouldn't draw an image you saw on google but you would rather print it

because it's more convenient, efficient and you get a better end result

marble juniper
#

yes

#

this

earnest phoenix
#

even when i catch errors no errors come

#

thats why im stuck

marble juniper
#

just check if the bot has the EMBED_LINKS permission before trying to send the message

#

lol

modest maple
#

try except finally else is python's system

marble juniper
#

idk python so yeah

earnest phoenix
#

thats why im stuck

modest maple
#

also im having a bit of a dumb momenet, Is there anyway to import a class from a CDN url from a function in JS

earnest phoenix
#

set up error handling properly

marble juniper
#

^

modest maple
#

pepehmm I feel like this is not how to go about this problem:

export function extractFiles(torrentId, submit) {
    import("http://127.0.0.1:8080/static/torrent.min.js").then((wt) => {
        let client = new wt.Webtorrent()

        client.add(torrentId, function (torrent) {
            torrent.on('error', function (err) {
                console.log(`Got exception: ${err}`)
            })

            submit(torrent.files)
        })
    });
}```
cinder patio
#

That could work

modest maple
#

probably doesnt help that im not entirely sure wtf im importing

cinder patio
#

console.log wt to check what it is and go from there

#

Also maybe cache the result from import so you don't make a new request every time you call the function

humble rock
#

client.on(eventName, event.bind(null, client));
^

TypeError: event.bind is not a function

why i got this error?

cinder patio
#

event is not a function

#

it's something else, console log to check what it is

earnest phoenix
#

Function.prototype.bind() only works on functions

humble rock
earnest phoenix
#

You might be exporting something else

humble rock
#

but yesterday it works :/

warm marsh
#

What did you change since then?

humble rock
#

nothing

earnest phoenix
#

Log event and see what it returns

cinder patio
#

maybe you added a file which doesn't export a function

warm marsh
#

^

cinder patio
#

and eventFile to see from which file it's coming

humble rock
#

now works and i don't change nothing

earnest phoenix
#

Don't you love it when your code fixes itself

cinder patio
#

that's concerning

marble juniper
earnest phoenix
#

Can anyone tell me why this command is not working?

if(message.content === " ") { let rate = [] let embed = new discord.MessageEmbed() .setTitle() .setColor() .setDescription(rate[Math floor(Math.random() * rate.length)]) }

marble juniper
earnest phoenix
#

Nope

marble juniper
earnest phoenix
#

There is a command

marble juniper
#

uhm

#

if (message.content === " ") {}

#

is practically

zealous sable
#

The command only does something if the message is a space

marble juniper
#

nothing

#

yes

#

that makes no sense

earnest phoenix
#

I think he's cutting out the command name and whatever inside the rate array

#

Not to reveal anything to us 🗿

zealous sable
#

that doesnt really help us tho does it KEKW

pale vessel
#

a message can't be a space

marble juniper
#

Please go learn javascript and then come back k thanks

unkempt ocean
marble juniper
#

lol

unkempt ocean
#

there's no send message or anything

marble juniper
#

true

#

also

#

please use a formatter

#

and use code blocks

earnest phoenix
marble juniper
#
console.log("Code blocks like these")
console.log("Because syntax higlighting makes the code easier to understand for most")
earnest phoenix
unkempt ocean
#
if(message.content === " ") {
let rate = []
let embed = new discord.MessageEmbed()
.setTitle()
.setColor()
.setDescription(rate[Math floor(Math.random() * rate.length)])
}

earnest phoenix
#

You expect us to help you while you're cutting out everything from the code you showed

unkempt ocean
#

any error logs?

earnest phoenix
marble juniper
#

also rate is an empty array and you are trying to set the description as a null or undefined value

solemn leaf
#

Volt

#

Im mugging you

earnest phoenix
#

?

#

No i gave rate value

#

I didnt give it here

marble juniper
earnest phoenix
#

thats it

marble juniper
#

can't you just

#

show the full code

earnest phoenix
#

Why not show us the actual code instead of cutting everything out as i said

marble juniper
#

yes

earnest phoenix
#

Ok

marble juniper
#

if you cut things out we can't help

earnest phoenix
#

ok wait

glossy spoke
#

It's more easy to use
let rate = Math.floor(Math.random() * 101)

earnest phoenix
#

Ohk

earnest phoenix
unkempt ocean
#

I'm just thinking about it could be args thing

#

5! is your prefix?

earnest phoenix
#

Yep

#

Thats my prefix

#

You're checking if the entire content is equal to that command, use String.prototype.startsWith() to check if it starts with the command

#

ok

earnest phoenix
#

Ok

#

and then append % to the number (in a string)

#

sure

earnest phoenix
#

huh?

earnest phoenix
#

in a string

#

Not in message.channel.send?

earnest phoenix
#

🚶‍♂️ 🦽

#

Ok its working

#

Thanks

glossy spoke
earnest phoenix
#

Ok

#

Working

misty sigil
#

["1%", "2%", "3%"...] bruh

earnest phoenix
earnest phoenix
glossy spoke
earnest phoenix
#

i don't know whether to feel mad or sad just how many people don't understand how percentages work lmfao

misty sigil
#

Why not both

earnest phoenix
#

true

#

Iam not a professional dev.

#

percentages are not related to development

misty sigil
#

i could tell

earnest phoenix
#

that's fourth grade maths but ok

#

fifth*

misty sigil
#

close enough

crimson vapor
#

pick a random number 1-100

#

then add %

#

ez

earnest phoenix
#

Ok

#

If i give * 101

#

It will give upto 100%?

crimson vapor
#

idk man

#

I just know what to do

earnest phoenix
#

ok

#

ok

#

Let me test

glossy spoke
earnest phoenix
#

actually

#

Ok

#

that * 101 doesn't make sense

glossy spoke
#

on programming the numbers starts since 0

earnest phoenix
#

ok

#

yes but you're multiplying by a power of 10

#

with a 100

glossy spoke
#

So if you use 100 it gives a number btw 0 and 99

earnest phoenix
#

which means just moving decimal places

misty sigil
#

just +1

earnest phoenix
#

you would + 1 at the result

glossy spoke
misty sigil
#

ez

earnest phoenix
#

not * 101

#
  • 101 would transform decimal places as well
glossy spoke
#

Like
let finalRate = rate + 1;

earnest phoenix
#

ok

lament ravine
#

const

crimson vapor
#
function getRandomPercentageFromPercentageArray() {
  const percentageArray = ["1%", "2%", "3%", "4%", "5%", "6%", "7%", "8%", "9%", "10%", "11%", "12%", "13%", "14%", "15%", "16%", "17%", "18%", "19%", "20%", "21%", "22%", "23%", "24%", "25%", "26%", "27%", "28%", "29%", "30%", "31%", "32%", "33%", "34%", "35%", "36%", "37%", "38%", "39%", "40%", "41%", "42%", "43%", "44%", "45%", "46%", "47%", "48%", "49%", "50%", "51%", "52%", "53%", "54%", "55%", "56%", "57%", "58%", "59%", "60%", "61%", "62%", "63%", "64%", "65%", "66%", "67%", "68%", "69%", "70%", "71%", "72%", "73%", "74%", "75%", "76%", "77%", "78%", "79%", "80%", "81%", "82%", "83%", "84%", "85%", "86%", "87%", "88%", "89%", "90%", "91%", "92%", "93%", "94%", "95%", "96%", "97%", "98%", "99%", "100%"]
  let num = 0;
  for(const x = { num: 1 }; x.num < Math.random() * 100; x.num++) {
    if (Math.random() > .1) num = num + 1;
  }
  return percentageArray[num]
}```
#

bro I swear that was pain to type

pale vessel
#

good code

earnest phoenix
#

dammn

glossy spoke
pale vessel
#

@earnest phoenix can you try breaking a cs sandbox

earnest phoenix
#

depends

pale vessel
slender thistle
crimson vapor
#

floating points are what?

cinder patio
#

points that float

crimson vapor
#

ah ty for the clarification

lyric mountain
#

that was awful to see

#

I need some eye bleach

modest maple
#

okay so

#
export function extractFiles(torrentId, submit) {
    import('http://127.0.0.1:8080/static/torrent.min.js')
        .then((module) => {
            console.log(module);

            
        });```
#

This is successfully acquiring the module

#

But how does one extract a exported constructor from said module pepehmm

lyric mountain
#

IP leaked

#

gonna hackerz

cinder patio
#

Hmm what does a module object look like actually? Never seen one

lyric mountain
#

like, the constructor has the same name as the class

modest maple
#

Thats what i thought until we got undefined 😔

lyric mountain
#

have u tried module.constructor?

cinder patio
#

How is the class expoted? Is it the default export

modest maple
#

yh

#

wellp

#

ig there is but one solution

#

copy paste all the code into one file hyperClap

cinder patio
#

ok then

lucid mango
#

hi im new and im tryna make a disc bot and i am learning from tutorial however, for some reason, i get this error

#

u can see in 15th,

#

something is wrong, but i do not know where i went wrong

#

please help at the earliest

earnest phoenix
#

you have a bunch of syntax errors

lucid mango
earnest phoenix
#

:, indentation

earnest phoenix
lucid mango
earnest phoenix
#

then as norizon said, indentation

lucid mango
#

hope im not bein annoying, this is just a passion i wanna learn

slender thistle
#

You really might wanna learn basic Python instead of getting straight into Discord bots

modest maple
#

starting with the language fundamentals

lucid mango
modest maple
#

maybe a couple months to a year perhaps to get to the right stage

slender thistle
#

Also for indents you must use the same number of spaces/tabs and you used 1 space on one indent and more on another

dusky sundial
#

Depends on how quickly you learn

#

But at least a couple of weeks, for the basics

earnest phoenix
#

depends, but python is relatively an easy language to start with, at least to me

dusky sundial
#

If you already have coding experience it's even faster. But yeah- Python is definitely one of the easier ones

dusky sundial
#

I would advise against delving into Discord bot development before you know how to write proper syntax. You're just gonna be confused, and people will most likely not help you if you don't understand what they're telling you

slender thistle
#

use the same number of spaces for indents everywhere

lucid mango
dusky sundial
#

I learned quite a bit from just watching YouTube videos. But there are hundreds of different websites and guides. Just google around and you'll surely find one that you like

#

Just make sure the guide isn't like 5 years old

slender thistle
#

Example:

def my_function():
    # do some stuff
    if True:
        print("one") # 4 spaces indents here
    else:
      print("two") # 2 spaces indents here
    # won't work because you must use EITHER 4 spaces or 2 EVERYWHERE
earnest phoenix
limber cobalt
#

so

#

this line of code isnt working...

#

it works fine with the ban permition

#

but the move members isnt working as it shoud

earnest phoenix
#

can u send the other parts of the code

limber cobalt
#

sure

earnest phoenix
#

not the enteire bot, just this command

limber cobalt
#

here

earnest phoenix
#

this is a nuke bot

#

[i for i in channel.members] blobweary

limber cobalt
#

hehhe

#

still in the first year of software eng

earnest phoenix
#

i won't help to make a nuke bot cause it's against the tos

limber cobalt
#

?

#

wait

#

really

earnest phoenix
#

yes

#

nuking a server is against discord tos

limber cobalt
#

but its a random thing

sterile minnow
#

Is there any way to get the Sticker URL from a Message if a Sticker is sent? Discord JS 12.4.0

earnest phoenix
#

stickers like this?

sterile minnow
#

yes

#

Is there any way to get the URL of it? Cuz message.content doesnt have that. And is there any way to use the new Reply feature in Discord JS?

earnest phoenix
#

djs doesn't support them

#

stickers are a property of the message object so you can't really get it without modifying djs

#

there's a PR open if you wanna fork djs and merge it yourself

sterile minnow
#

Okay imma try

earnest phoenix
#

raw objects kek

#

i mean that too

#

you can use raw events

sterile minnow
#

Hmm

#

Would be a Idea too

#

Replies are not there yet too right? If yes i would just fork the Libary and Add both thingys

earnest phoenix
#

correct

sterile minnow
#

Can i just fork it and yoink those prs in it and just straight up use it or is there a catch?

earnest phoenix
#

yeah, npm allows installing from a git repo

sterile minnow
#

Okay imma try that

#

I hope my Bot supports that lmao

earnest phoenix
#

you might encounter some breaking changes though

sterile minnow
#

Yea lets just hope

feral skiff
sterile minnow
#

How do i get that PR to merge with mine tho

earnest phoenix
earnest phoenix
sterile minnow
#

Or whats the one i need?

earnest phoenix
#

replies are already supported in the master branch

#

that PR is just for the reply method

sterile minnow
#

So how do i use the new replies?

#

Cuz .reply does the old

earnest phoenix
#

i have to go through the source

#

sec

feral skiff
sterile minnow
#

Yea i mean this reply

feral skiff
#

It’s gonna be in v13

#

Also slash commands in v13 too

sterile minnow
#

Cry said its usable in v12 too. Lets just hope

feral skiff
#

:woah: 13✨ :blobreach: _ _ _ _ _ _ :ayy: ha, neeerds, i'm still on v11
• is it out yet? no.
• replies?! replies.
• slash commands?! slash commands.
• rewrite?! no.
• is it out yet? no.

#

From the support server

sterile minnow
#

Hmm okay

earnest phoenix
#

you can roll your fork, you don't have to use the official npm releases lol

sterile minnow
#

lel

glacial pagoda
#

Can Someone Help About Why Wont My Command Work?
Code: https://pastebin.com/hu7CKKsx
Everytime I Put The Command, The Bot Wont Do Anything And The Command Handler Seems Fine.

sterile minnow
glacial pagoda
#

Everytime I Put A Command The Bot Dont Say Anything

sterile minnow
earnest phoenix
#

okay so @sterile minnow it seems that you just need to set replyTo property in the options object in send

#
send("content", { replyTo: message object | message id });```
glacial pagoda
#

Can Someone Help About Why Wont My Command Work?
Code: https://pastebin.com/hu7CKKsx
Everytime I Put The Command, The Bot Wont Do Anything And The Command Handler Seems Fine.

earnest phoenix
#

Debug It

glacial pagoda
#

I Did

#

I Restarted The Debugger

cinder patio
#

oh god... why are you hard-coding every role?

glacial pagoda
#

It Looks More Eaiser To me

sterile minnow
#

thanks

glacial pagoda
#

Since It Wont Work

solemn leaf
#

Delete your code

#

Learn javascript

#

Come back

glacial pagoda
#

;-;

#

I worked hard on that code

solemn leaf
#

If you knew javascript you could be able to do what you are doing in 30 lines

earnest phoenix
#

i am on python and i have a code question

#

my trivia command count as answer any message from any member

#

how can i put that it take as answer only a message from the member who requested the command?

eternal osprey
#

hey

#

how do i create an array in c# with all the letters of the alphabet, and it ranmdomly generates 9 of them each time.

solemn leaf
#

Google i5

#

it

eternal osprey
#

yeah, i have tried findinitbut i can't.

earnest phoenix
#

are you sure you need to create an array filled with letters

#

why not an array with just those 9 letters

dusky sundial
earnest phoenix
#

is this for your assignment lmfao

gilded olive
#

wait_for()?

eternal osprey
#

me?

earnest phoenix
#

yes

eternal osprey
tardy hornet
#

it says the id is undefined

earnest phoenix
#

that's not how js comparison works

misty sigil
#

there is no mention

#

and the code isnt even good in the first place

eternal osprey
#

omg life saver. Thanks.

solemn leaf
#

Nice google

gilded olive
#

when in doubt stackoverflow your way out

earnest phoenix
solemn leaf
#

What

earnest phoenix
dusky sundial
#

Put it wherever you want to check that the author replied

eternal osprey
#

hey so i have a vsc project in c#

#

how do i export it as exe?

#

kinda new to c#

dusky sundial
#

Are you sure you can't find that on google?

earnest phoenix
#

by compiling (?)

#

are you using .net or .net fx

eternal osprey
#

.net

earnest phoenix
#

use dotnet publish

gilded olive
# earnest phoenix
def check(m):
    return m.author = ctx.author and m.channel is ctx.channel
try:
    await bot.wait_for('message', timeout=10, check=check)
except asycnio.TimeoutError:
    handle_error()``` ![Thonk](https://cdn.discordapp.com/emojis/356771720863940608.webp?size=128 "Thonk")
earnest phoenix
#

the existence of for loop is in danger dv_pepePopcorn

gilded olive
earnest phoenix
#

Actually, did you mean to just random pick the question? If so, just use random.choice or secrets.choice lol

#

==, you should not copy it directly doe

earnest phoenix
#

I know, you've been told how to do so

gilded olive
earnest phoenix
#

But the way you do your command doesn't scale

gilded olive
#

also handle_error() isnt an actual function, that's gonna throw an error

#

I just put it there as a placeholder

#

and the if checks should go in the try/except block

earnest phoenix
#

not really, if they just want to wait for a message, they can just do it once instead of waiting for a message in every if / elif

gilded olive
#

true

median marten
#

hi, i'm brazilian, someone?

earnest phoenix
median marten
#

😂

crystal wigeon
#

Hey guys, umm, reviews from my bot on topgg keeps disappearing, is it some sort of housekeeping done on the reviews?? This is the second time that happened..

earnest phoenix
crystal wigeon
#

Thanks

earnest phoenix
#

I got this error whenever my bot tries to send an message

crimson vapor
#

yikes is that a cf ban?

rustic nova
#

2-3 hours, if nothing happens, full 24 hours

#

whatever you did, you did stinky

opal plank
earnest phoenix
#

lol, I just got 429'd from my own server 😆

glossy spoke
feral aspen
#

!command args1 <#channel>

#

How can I get #channel?

#

message.mentions.channels.first() gets the args1.

rustic nova
#

is args1 a channel?

feral aspen
#

no.

earnest phoenix
#

hi i need help makiing a ping command

feral aspen
#

It's a message, basically it will be an id

earnest phoenix
#

it's in js

feral aspen
earnest phoenix
#

neither worked for me

#

module.exports = {
commands: 'ping',
callback: (message, arguments, text, client) => {
message.reply('Calculating ping...').then(resultMessage => {
const ping = resultMessage.createdTimestamp - message.createdTimestamp

        message.reply(`Bot latency: ${ping}, API Latency: ${clients.ws.ping}`)
    })
},

}

this doesn't work...

feral aspen
lyric mountain
#

@quartz kindle just discovered how I hate to publish packages to mavencentral

limber cobalt
#

Guys, can someone help me?

#

the move members chek is not wprking...

#

check*

#

it blocks me evry time

#

even if i have the move_members permittion

lyric mountain
#

that's so colorful idk where to start reading lul

limber cobalt
#

hahahaha

#

here

#

sorry

#

i love the maokai theme

mellow kelp
#

is that the eclipse theme

limber cobalt
#

Mokai fot the won

#

win*

mellow kelp
#

pog

glossy spoke
limber cobalt
glossy spoke
limber cobalt
glossy spoke
limber cobalt
#

thx anyway

#

🙂

tired panther
#

Show the code , where the problem is caused

limber cobalt
glossy spoke
#

Python... like basic english

limber cobalt
#

hahahaha

tired panther
#

@limber cobalt that is the problem the f

limber cobalt
#

???

#

the f?

#

the isnt working because of the f?

mellow kelp
#

that's not the problem KEKW

tired panther
#

or does python allow this kind of strings?

limber cobalt
#

check*

mellow kelp
#

that's an f string

limber cobalt
#

hahah

tired panther
limber cobalt
#

no

mellow kelp
#

the cool kids use f strings

limber cobalt
#

the f is fine

#

TRUE

#

the check isnt working

#

thats the probelm

#

problem*

tired panther
#

is the check , where the #is beginning?

limber cobalt
#

?

#

this isnt working

#

its allways bgiving me the not permission error

#

even if i have the move member permittion

#

permission*

tired panther
limber cobalt
#

?

#

what does that mean

tired panther
#

log the permissons of the member / commands in this case in console

tired panther
limber cobalt
#

hummm

#

okok

#

ill debug the shit out of it

restive furnace
lyric mountain
#

fuck string

restive furnace
#

bruh string for you

opal plank
#

whats the ID of everyone?

cinder patio
#

The guild's id

opal plank
#

ah, ty

cinder patio
#

SO I'm working on my programming language, and it's very difficult to parse function the way javascript does:

(...) => { ... }
replacing the parentheses with another character (for example |) would make it super easy but I don't really want to do that

earnest phoenix
#

oh m y fcking god

#

i hate this bot

kind thicket
#

About a week or so is i think how long it took for me

earnest phoenix
#

you should ask in discord.gg/discord-developers

#

i can't send invites cause im a whitename

jovial elk
#

i see, thanks guys ^^ 🙂

opal plank
#

so, question

#

how do you make a category channels that visible to everyone?

#

whenever theres no channels, it seems to autohide

#

though the moment i add channels to it, its visible to @ everyone

kind thicket
#

i suppose you just make the category visible and the channels require a role

opal plank
#

it is visible

kind thicket
#

huh, not sure in that case

opal plank
#

though when im inspecting as the @ everyone role, it simply doesnt show up

#

though, as soon as i add a channel to the category, it appears just fine

#

i mean, using voice is an option, but i'd be best to use categories

cinder patio
#

I think that's just how discord works

opal plank
#

thats kinda of a bummber tbh

split cipher
#

Edit those channels?

tired panther
cinder patio
opal plank
#

since when do categories need to have a parent?

tired panther
lyric mountain
#

finally, after crossing the pits of despair, climbing through mountain of bureaucracy, swimming against the currents of teminal errors...

tired panther
#

lol

lyric mountain
#

I successfully published the package

tired panther
opal plank
#

im ONLY using a category

tired panther
opal plank
#

theres no channels involved in any of this

#

so idk why you're mentioning text channels

tired panther
opal plank
#

yeah

earnest phoenix
#

this behavior must be new or your perms are fucked

tired panther
#

they can not see it , when they do not have the Manage Channel perm lol @opal plank

tired panther
earnest phoenix
#

huh interesting

tired panther
#

xD

tired panther
lyric mountain
#

what are yall talkin about?

opal plank
cinder patio
#

voice channels are your best option

opal plank
#

yeah thats what i might have to fallback to

tired panther
tired panther
lyric mountain
#

what's the issue?

tired panther
opal plank
#

purely visual

#

the voice would have a lock sign next to it if users couldnt connect

lyric mountain
#

yeah, true

opal plank
#

doesnt happen in categories

lyric mountain
#

didn't know about that

tired panther
lyric mountain
#

look at the first ss

tired panther
#

ah yes, is this spanish?

lyric mountain
#

pt-br

tired panther
opal plank
#

categories without channels get hidden by default

#

thats a big bummer

#

unless MANAGE_CHANNELS

opal plank
tired panther
opal plank
lyric mountain
#

doesn't discord have a suggestions page?

opal plank
#

this is infuriating tbh

lyric mountain
#

that'd be neat to have

opal plank
#

hate those locks

tired panther
opal plank
#

well, the point is for the users to see it, not me

#

i got my stats locally, the whole point is to advertise it

#

¯_(ツ)_/¯

#

to other people

tired panther
tired panther
opal plank
#

wait what?

tired panther
opal plank
#

no?

#

that was me using it and testing that it wasnt being shown

tired panther
# opal plank

so you would like that Uses , will not see the lock or the connect button on the vc?

lyric mountain
#

"Create text"

opal plank
#

i am so confused as to what either of you are talking about

lyric mountain
#

oh my

#

jsut a sec, gonna put my disc in english

tired panther
opal plank
#

:U556_Wave:

#

wot?

#

my nitro gone

#

amazing

lyric mountain
#

see? perfect solution

tired panther
opal plank
#

i made a category, which is part of a channel structure, i set poeple to see it. Why the fuck does discord thinks its fine to just hide it?

lyric mountain
#

like, a "create text" would be very easy on their side, would take almost no space/processing as a channel and would be useful af

sour summit
#
.entity-button .entity-table .entity-owner {
  border-radius: 4px;
}
#

is this the correct way to have multiple classes using same code

#

idk

#

or do i have to add commas between these classes

kind thicket
#

pretty sure you use commas in between the classes

earnest phoenix
#

^

sour summit
#

ok ty

earnest phoenix
#

right now this is selecting an element that has all three applied

compact prairie
#

is it possible to set a custom timestamp

#

like Today at whatever time you want

lyric mountain
#

yes

compact prairie
#

how

lyric mountain
#

lib?

compact prairie
#

what

lyric mountain
#

what lib are u using?

compact prairie
#

wdym

#

js

lyric mountain
#

library

#

which one

compact prairie
#

discord.js sorry

#

can you help

#

@lyric mountain

lyric mountain
compact prairie
#

ty

lyric mountain
#

was getting the doc link

jolly mortar
#

my bot is turning off when someone kicks or invites it and i dont know whats causing it to do that

#

it was working yesterday

lyric mountain
#

show code

#

at least the part where you're declaring onGuildRemove event

#

also, is there something in the log?

sour summit
#

can anyone help me check if my bot's page font is working

opal plank
sour summit
#

like just screenshot i will know if it works or not

opal plank
sour summit
#

no it's not working

#

damn

lyric mountain
#

what font are u trying to use?

earnest phoenix
#

It’s working

lyric mountain
#

it's not probably, times is default fallback for missing fonts

#

if you didn't set font-family

sour summit
#
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;900&display=swap');
#
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;900&display=swap');

* {
  font-family: "Monterserrat", sans-serif
}

.content a {
  color: #2afad0;    
}

.entity-content__description {
  border-radius: 5px;
}

.entity-button, .entity-table, .entity-owner {
  border-radius: 4px;
}
#

this is the full code

#

what did i make wrong

#

i followed the google add font steps

lyric mountain
#

idk if import will work at all

sour summit
#
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;900&display=swap" rel="stylesheet"> 
``` or this
modest maple
#

think you want to use the font face

#
@font-face {
  font-family: myFirstFont;
  src: url(sansation_light.woff);
}```
sour summit
#

credit from w3schools for sure

modest maple
sour summit
#

ok

lyric mountain
#

woff

sour summit
#

woff ok

sour summit
# lyric mountain woff

even though i added these it still shows serif font

@font-face {
  font-family: "GothamPro";
  src: url(https://gist.github.com/mfd/f3d96ec7f0e8f034cc22ea73b3797b59/raw/fad2f254369fb54250260077a4c87391a6280c52/GothamPro.woff) format("woff");
  font-weight: 400, 500;
}

@font-face {
  font-family: "GothamPro";
  src: url(https://gist.github.com/mfd/f3d96ec7f0e8f034cc22ea73b3797b59/raw/fad2f254369fb54250260077a4c87391a6280c52/GothamPro-Medium.woff) format("woff");
  font-weight: 600;
}

@font-face {
  font-family: "GothamPro";
  src: url(https://gist.github.com/mfd/f3d96ec7f0e8f034cc22ea73b3797b59/raw/fad2f254369fb54250260077a4c87391a6280c52/GothamPro-Bold.woff) format("woff");
  font-weight: 900;
}
#

i don't see what's wrong

proven lantern
#
body {
  font-family: "GothamPro" !important
}```
sour summit
#

um ok i'll give it a try

#

pog it works

#

tysm

proven lantern
#

you need to apply the font family that was created by the @font-face

#

that applies it to the body

#

np

sour summit
#

wait no i think it's not really working

#

;-;

#

because when i edit it locally using inspect it still shows the serif stuff

#

i think no matter you change body or * it's basically the same

proven lantern
#

do you see the .woff file being downloaded in the network tab?

sour summit
#

status 301 moved permanently

#

oic

#

bruh github

earnest phoenix
#

is there a reason for not using google fonts and @import

sour summit
#

no idea how to get the font file from google

#

like the raw link

earnest phoenix
#

yes but

sour summit
#

what

earnest phoenix
#

shit

#

wrong reply

rugged cobalt
#

OK, so in mongoose I am having a bit of an issue. This should be getting rid of the prefix value from the document, right? js await guildConfig.findOneAndUpdate( { _id: message.guild.id }, { _id: message.guild.id, prefix: undefined }, { upsert: true, omitUndefined: true }, );

earnest phoenix
#

i hate mobile

sour summit
#

lol

earnest phoenix
#

that should work completely fine

sour summit
#

i tried import but not working tho

earnest phoenix
#

revert back to google fonts and import then check the console and network tab

rugged cobalt
sour summit
#

is this correct thing to import

earnest phoenix
earnest phoenix
sour summit
#

ok

rugged cobalt
#

oh lmao

sour summit
lyric mountain
sour summit
lyric mountain
#

this

sour summit
#

wait it's using a bunch of woff2 is that ok

lyric mountain
#

well, you shouldn't define anything but src and font-family there

earnest phoenix
#

google fonts takes care of providing the font sources for you

#

@import and setting font-family is enough

lyric mountain
#

aren't google fonts included in chrome already?

earnest phoenix
#

no

sour summit
lyric mountain
#

no

#

still times

sour summit
#

bruh this is dumb i had no idea why it's failing

#

but by editing the * block and replace the font with ur local existing font will work

#

this is a literal earthbound monment

#

when u use local existing fonts for the block it works

#

when u try to import it doesn't even try to work

#

so i guess the problem is the importing

earnest phoenix
#

it's because you didn't structure your html correctly

#

share your bot description

#

in a bin

sour summit
#

not including the markdowns

earnest phoenix
#

that's just the style tag

#

uh huh

#

there's the problem

sour summit
#

sure the markdowns like the desc won't affect stuff

earnest phoenix
#
<html>
  <head>
    <!-- everything that belongs in the head (scripts, styles, meta tags...) -->
  </head>
  <body>
    <!-- the actual content of your page -->
  </body>
</html>
#

you can't place style tags anywhere you want

lyric mountain
#

ohhhh forgot about that

sour summit
#

isn't top.gg desc thing in .md file so u don't have to html block everything?

earnest phoenix
#

you're forgetting that style is a part of html

#

not md

sour summit
#

md supports html tho

lyric mountain
#

iirc they're put inside body right?

earnest phoenix
#

yes

#

and style is a part of html

mellow kelp
#

they just probably parse markdown stuff to html

earnest phoenix
mellow kelp
#

and set everything as innerHTML, which also includes html-specific stuff

earnest phoenix
#

and oh my god top.gg's css is still hot garbage even with this redesign

mellow kelp
#

really

sour summit
#

ok like how since all my stylish code are in css

#

or i have to add another <body>

earnest phoenix
#

just follow the structure i sent above

sour summit
#

before <style>

earnest phoenix
#

you can still use md in the body as the markdown parser takes care of that i think

sour summit
#

nvm i messed up my explanation

earnest phoenix
#

if not, well, if you're going to use html, might as well use it fully

earnest phoenix
#

you should also probably just set the font in your bot description, not the entire page

#
.entity-content__description > * {
rules:;
}
sour summit
sour summit
earnest phoenix
#

i know you are

sour summit
earnest phoenix
#

try it and see

copper cradle
quaint wasp
#

lol

#

I get this/./..

#
    const banembed = new Discord.MessageEmbed()```
#

and my code is..

vast salmon
#

no

quaint wasp
#

😐

#

what do u mean no?

#

Shouldnt that like... define banembed?

#

help.

copper cradle
#

@quaint wasp what's wrong with your code? what doesn't work

rugged cobalt
#
// using akairo so args is defined in CommandOptions
let prefix = args.prefix; // '.'
if (prefix === this.client.config.prefix) { prefix = undefined; } // prefix is now undefined

await guildConfig.findOneAndUpdate(
  { _id: message.guild.id },
  { _id: message.guild.id, prefix },
  { upsert: true, omitUndefined: true },
);``` So if the prefix is `.` which is the current value for the config, this should delete that value from the document but it's not even updating it
solemn latch
#

why three seperate add fields 👀

copper cradle
#

you gotta specify the language

#

like this

solemn latch
#

```js
code
```

copper cradle
#

```js

```

#

just in case you believe you actually have to chain the methods

rugged cobalt
#

???

#

I assume you clicked the wrong person?

#

if the prefix is undefined, delete it from the document in mongoose

copper cradle
#

that's not what they're trying...

rugged cobalt
#

^^

solemn latch
#

its probably better to check if its undefined when you set it, and then just delete it rather than updating/adding it

copper cradle
#

yeah

rugged cobalt
#

Thing is, there are other values in the schema

#

like muteRole etc.

#

so I don't want to delete the entire document in case those values exist

solemn latch
#

🤔

rugged cobalt
#

I'll make an example

solemn latch
#

unset

rugged cobalt
#

oh

#

but I thought omitUndefined would handle that for me, as it says in the docs?

#
[options.omitUndefined=false] «Boolean» If true, delete any properties whose value is undefined when casting an update. In other words, if this is set, Mongoose will delete baz from the update in Model.updateOne({}, { foo: 'bar', baz: undefined }) before sending the update to the server.```
#

and that's what my code has

solemn latch
#

but it had it before right?

#

potentially, its just setting it to undefined, since its not receiving it in the query?

#

i dont think mongodb has omitUndefined, so thats mongoose right?

rugged cobalt
#

No, in the document when I check the prefix is the same as before the update

rugged cobalt
solemn latch
#

okay yeah, so its just not setting anything because your only updating other thigns

#

things*

#

mongoose is just sending nothing related to the prefix, so mongodb doesnt change anything, which is what omitUndefined does.

sour summit
rugged cobalt
eternal osprey
#

hey

solemn latch
#

theres no point in adding it, since it doesnt send it.

eternal osprey
#

how do i compile my c# program with folders etc to exe?

rugged cobalt
copper cradle
#

run node build -l/usr/bin
/s

solemn latch
#

yeah

sour summit
#

@earnest phoenix ok doesn't seem to work guess i will give up that option lol

earnest phoenix
#

ill check out the site in a sec

sour summit
#

i don't see an actual solution and i think i just fucked up the markdown

#

LOL

copper cradle
#

show your code

earnest phoenix
#

it works for me

#

it's just that your markdown didn't parse

copper cradle
#

I wonder what they actually did

earnest phoenix
#

nvm

#

i don't see the change

#

so 🤷‍♂️

sour summit
#

yeah i don't see people changing the fonts so yeahhhh

earnest phoenix
#

you can easily change it

#

you just have to respect html ordering rules

copper cradle
#

just

#

show your code

#

I wanna see what you did

lyric mountain
#

try using !important

#

it's a bad habit but whatever

eternal osprey
#

i have a program.cs file in the folder. How do i actually compile it to exe?

sour summit
earnest phoenix
#

i sent you an answer already

eternal osprey
earnest phoenix
#

don't tell me you have a program.cs alone

#

without

#

any actual csproj

eternal osprey
#

i do

#

have a csproj

earnest phoenix
#

then just use dotnet publish 👁️ 👄 👁️

sour summit
#

what a c# bot? what even is that library

earnest phoenix
#

you have examples on the doc page

sage bobcat
#

One message removed from a suspended account.

earnest phoenix
#

it deadass doesn't get simpler than running dotnet publish

sage bobcat
#

One message removed from a suspended account.

copper cradle
sage bobcat
#

One message removed from a suspended account.

sour summit
copper cradle
#

you have a fucking spelling error

#

you wrote Monteserrat

#

It's called Montserrat

sage bobcat
#

One message removed from a suspended account.

copper cradle
#

not Monteserrat

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

earnest phoenix
sage bobcat
#

One message removed from a suspended account.

copper cradle
#

they literally pasted there the code they have

sage bobcat
#

One message removed from a suspended account.

copper cradle
#

how is that not the issue

#

unless you're not talking to me

sage bobcat
#

One message removed from a suspended account.

eternal osprey
sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

earnest phoenix
#

you don't have a package named discord installed

earnest phoenix
eternal osprey
#

omg i am stupid

sour summit
sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

earnest phoenix
#

are you all high on oxy or something today

copper cradle
sage bobcat
#

One message removed from a suspended account.

copper cradle
#

¯_(ツ)_/¯

sour summit
#

@copper cradle ily wtfffffff

sage bobcat
#

One message removed from a suspended account.

copper cradle
#

alr

earnest phoenix
#

this is about a top.gg bot page

#

overriding font styling

sage bobcat
#

One message removed from a suspended account.

sour summit
#

WHAT IT'S BEEN A TYPO THE WHOLE TIME

sage bobcat
#

One message removed from a suspended account.

earnest phoenix
#

are you high

sour summit
sage bobcat
#

One message removed from a suspended account.

earnest phoenix
#

raymond and awesome are two different people

sage bobcat
#

One message removed from a suspended account.

copper cradle
#

that was the first thing I noticed when I read your code

sage bobcat
#

One message removed from a suspended account.

copper cradle
#

this is a misunderstanding

sage bobcat
#

One message removed from a suspended account.

copper cradle
#

yeah

earnest phoenix
#

are you sure you're not high

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

earnest phoenix
#

raymond and awesome, again, are two different people with different issues

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

copper cradle
#

I was helping the dude with the css problem

sage bobcat
#

One message removed from a suspended account.

copper cradle
#

which made a misspelling

sage bobcat
#

One message removed from a suspended account.

earnest phoenix
#

🤦

eternal osprey
#

bro what is going on

sage bobcat
#

One message removed from a suspended account.

earnest phoenix
#

this chat is an oxymoron

sage bobcat
#

One message removed from a suspended account.

copper cradle
#

same

sage bobcat
#

One message removed from a suspended account.

eternal osprey
sage bobcat
#

One message removed from a suspended account.

eternal osprey
#

only thing i am getting is the same error lmao

earnest phoenix
#

you should also probably use dsp over dnet

#

dnet is a dumpster fire

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

eternal osprey
#

this still gives me the same error once installed

earnest phoenix
#

dnet forces you to access methods through entities, in some cases you have to fetch the entity first which is very expensive for some bots which are on the brink of getting ratelimited

dsp exposes every endpoint right on the client 🤷‍♂️

eternal osprey
#

The project does not support adding package references through the add package command.

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

earnest phoenix
#

then you don't have a .net core project

#

no you dont

sage bobcat
#

One message removed from a suspended account.

earnest phoenix
#

visual studio is an IDE

#

irrelevant

sage bobcat
#

One message removed from a suspended account.

eternal osprey
sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

earnest phoenix
#

show your csproj

eternal osprey
#

vsc marketplace or just pc

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

eternal osprey
sage bobcat
#

One message removed from a suspended account.

sour summit
#

isn't c# vs or is it vsc

earnest phoenix
#

c# is a language

sour summit
#

ik

sage bobcat
#

One message removed from a suspended account.

eternal osprey
sour summit
#

but how do people edit

sage bobcat
#

One message removed from a suspended account.

earnest phoenix
#

show the contents of your csproj oh my god

sage bobcat
#

One message removed from a suspended account.

earnest phoenix
sour summit
sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

earnest phoenix
#

well

#

technically you only need csproj

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

sour summit
eternal osprey
#

holy shit wrong server

#

sorry

earnest phoenix
#

this chat is autistic

sage bobcat
#

One message removed from a suspended account.

sour summit
sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

sour summit
#

i'm not even familiar with c# text based stuff ;-;

sage bobcat
#

One message removed from a suspended account.

earnest phoenix
#

@sage bobcat have you delved into unsafe c# yet

sage bobcat
#

One message removed from a suspended account.

earnest phoenix
#

it's so fun i managed to break my app 10 times within 2 minutes

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

sour summit
sage bobcat
#

One message removed from a suspended account.

sour summit
#

so he's definitely on somewhere else

sage bobcat
#

One message removed from a suspended account.

eternal osprey
earnest phoenix
#

that isn't net core

sage bobcat
#

One message removed from a suspended account.

earnest phoenix
#

you have a net fx project

sage bobcat
#

One message removed from a suspended account.

eternal osprey
earnest phoenix
#

i asked you that this morning and you said .net

#

🙄

eternal osprey
#

uhhm

sage bobcat
#

One message removed from a suspended account.

eternal osprey
#

my bad

earnest phoenix
#

delete your csproj and run dotnet new console

sage bobcat
#

One message removed from a suspended account.

earnest phoenix
#

this might overwrite your program.cs

#

so copy it

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

earnest phoenix
#

good point

#

idk

sage bobcat
#

One message removed from a suspended account.

eternal osprey
#

okay it is done cry

earnest phoenix
#

now you can use the dotnet add package command

eternal osprey
#

i hop se

earnest phoenix
#

including dotnet publish

sage bobcat
#

One message removed from a suspended account.

earnest phoenix
#

.net fx != .net/.net core

#

fx means framework, the x means any version of framework

#

framework is windows only (and is long dead and replaced by .net5.0 which is now cross platform)

sage bobcat
#

One message removed from a suspended account.

eternal osprey
#

aha okay thanks!

#

MSBUILD : error MSB1011: Specify which project or solution file to use because this folder contains more than one project or solution file. how in fuck sakes

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

crimson vapor
#

in ts, how would I say that a function takes a value of an enum?

earnest phoenix
#

you have multiple csproj in your folder

sage bobcat
#

One message removed from a suspended account.