#development

1 messages · Page 1894 of 1

outer atlas
#

nvm

wheat mesa
#

I have no idea what I just read but ok

proven lantern
#

thanks discord

earnest phoenix
proven lantern
#

unacceptable

#

lol

outer atlas
#

u have discord error i have the stupid miniget error 😄

quartz kindle
#

lul

quartz kindle
earnest phoenix
#

ig cuz discord was dying because of many ppl using it

#

because fb gone

outer atlas
#

idk my bot is not using at / commands

#

becost i still dont like "/" commands

earnest phoenix
#

how can i store things in another file and invoke it in other files? because it's too large and messy

quartz kindle
#

fb gone? lmfao

proven lantern
boreal iron
#

Imagine not blocking the facebook network entirely okeh

earnest phoenix
#

or a way to store it in arrays

#

no help?

quartz kindle
#

if its functions and code, and export and import

earnest phoenix
#

i want to store this

quartz kindle
#

lmao

wheat mesa
#

lmao

earnest phoenix
#

lmao

quartz kindle
earnest phoenix
#

ye

#

it exports the data

quartz kindle
#

then you can split it into functions in different files with it

earnest phoenix
#

ok

earnest phoenix
quartz kindle
#
// file1.js
module.exports = function(something) {
  return something + 1;
}

// file2.js
const plus1 = require("./file1.js");
const result = plus1(10);
console.log(result) // 11
earnest phoenix
#

so like

quartz kindle
#

or like this for multiple things:

#
// file1.js
module.exports = {
  plus1: function(something) {
    return something + 1;
  },
  minus1: function(a) {
    return a - 1;
  }
}

// file2.js
const { plus1 } = require("./file1.js");
const result = plus1(10);
console.log(result) // 11
earnest phoenix
#

how we invoke the code to the file2?

#

why doesit it work

quartz kindle
earnest phoenix
#

with ```js
//code
plus1

//code

quartz kindle
earnest phoenix
#

we can put it in the middle of the code and that's it or something else

boreal iron
earnest phoenix
#

it exists

quartz kindle
#

well it wasnt found

quartz kindle
#

the code stays in another file

earnest phoenix
#

oh

#

then?

quartz kindle
#

you give it whatever it needs to work

earnest phoenix
#

but it exists wtf

quartz kindle
#

function parameters

earnest phoenix
#

i just checked it

boreal iron
earnest phoenix
quartz kindle
#

is your bot logged in?

earnest phoenix
#

yeah

#

whyyy.. I've been having this problem for a few hours before everything was working correctly

quartz kindle
#

console.log it

#

console.log(client.guilds.cache.get(id))

#

and console.log(client.channels.cache.get(id))

quartz kindle
earnest phoenix
#

its undefined

#

I don't understand how to do it

quartz kindle
#

what dont you understand?

earnest phoenix
#

a few hours ago everything was fine

#

send it in chunks maybe

#

If i send the code someone can help me please

boreal iron
earnest phoenix
#

...

#

i think intents

#

so?

earnest phoenix
quartz kindle
quartz kindle
earnest phoenix
#

This and

earnest phoenix
quartz kindle
earnest phoenix
#

No?

#

find embed

earnest phoenix
#

Because when i try to run the play command didn t work

quartz kindle
#

do you know what an embed is?

earnest phoenix
#

yea

quartz kindle
#

do you know what an embed field is?

earnest phoenix
#

where is the embed text?

#

or?

quartz kindle
#

embed.add_field

#

these are embed fields

#

you create them using embed.add_field

#

or with Embed(fields=...) (i think)

tardy hornet
#
          if (!message.guild.me.permissions.has(Permissions.FLAGS.VOICE_MISSING_PERMS)) {
            message.channel.send('This member can kick');
          return}

is VOICE_MISSING_PERMS the right one?

quartz kindle
#

?

#

there is no permission called VOICE_MISSING_PERMS

boreal iron
#

That’s not an actual permission, isn’t it?

#

nvm Tim’s here

earnest phoenix
#

this is the entire error

boreal iron
#

Mr documentation himself

earnest phoenix
#

but appear only when i run the play command

quartz kindle
earnest phoenix
#

shouldnt python point to the file directly and line

earnest phoenix
#

nvm found it

#

@quartz kindlethis?

#

how long is that error message bruh

#

remove these and try to see if happens again

boreal iron
#

The terminal error is the issue probably not the permissions

#

Which easily exceeds 1000 chars

earnest phoenix
#

print(len(error)) smirk

boreal iron
#

Doesn’t make sense to send a stacktrace as discord message on the first place

earnest phoenix
boreal iron
#

If needed log it to a file

earnest phoenix
boreal iron
#

The value can’t be empty

earnest phoenix
#

I have removed the handler

#

And this is the "big error"

#

appear at cloudfare protection

#

but idk why

boreal iron
#

Typing triggers are currently disabled by Discord

earnest phoenix
#

so is a discord issue?

storm scarab
#

$work

boreal iron
#

You should really begin to handle script errors properly

tardy hornet
#
 bot.on('error', (channel, error) => {
    channel.send(`An error encoutered, please join the support server and report it immediately `)
})
``` if i add this event when ever there is an error, it will send that only in the channel that the error command happened?
#

because one time i tried making it and the bot spammed it in a lot of channels

#

please ping me if know i need to know ASAP

proven lantern
#

dont do that

earnest phoenix
#

how are messages fetched in djs13

#

i googled, only pain

quartz kindle
#

unless this is an error you are emitting yourself

tardy hornet
#

so it will spam? okay ty i deleted it

quartz kindle
#

it will not even work

tardy hornet
#

o

#

then i need to use process.on unhandledRejection?

quartz kindle
#

that doesnt provide a channel either

tardy hornet
#

so how can i do that if there is an error it will send it in the channel it happened in once

quartz kindle
#

there is no built in thing for that

#

you have to do it yourself

tardy hornet
#

like with adding try to iy?

#

and caching it

quartz kindle
#

yes

tardy hornet
#

okay ty.

boreal iron
calm stone
#

hello

#

can i get bot cookie?

rose warren
#

🤖 AAcookieeat

limber mica
#

How do I push an image to the top of an embed

#

I cant seem to find how to do it in discord.js v12

quartz kindle
#

you cant

#

images always appear after an embed, if the image is not attached to the embed

limber mica
#

...

#

ok

boreal iron
#

Well you can send two messages

limber mica
#

How about

#

to the top right corner?

quartz kindle
#

embed icon

boreal iron
#

If the timestamp is close enough the will mostly appear as one

limber mica
#

there we go

boreal iron
quartz kindle
#

oh yeah its thumbnail not icon

#

icon is for embed title

boreal iron
#

Or the author

#

It’s can have an icon, too

limber mica
#

yep

#

thumbnail worked

boreal iron
#

Which is bigger than the one in the title

limber mica
#

Hmmm

#

TS is being bad again

#
await axios.get(`https://thumbnails.roblox.com/v1/assets?assetIds=${GM}&returnPolicy=PlaceHolder&size=768x432&format=Png&isCircular=false`).then((d) => {
    shot = d.data.data[0].imageUrl
#

buuut

#

its saying Property 'data' does not exist on type 'never'.

#

HMMM

#

BUT ITS VALID

#

These red lines are going to make me jump of a bridge, its the computer thats wrong

quartz kindle
#

computers are never wrong

limber mica
#

...

#

...

#

..

quartz kindle
#

one day AI will rule us all

#

its inevitable

limber mica
#

Task

#

Failed

#

Successfully

#

God i love things like this

quartz kindle
#

yes, a human made that

#

:^)

limber mica
#

Got a fix to TS dying?

quartz kindle
#

it says d.data is of type "never"

#

check the response status code

limber mica
#

Yes, it says it does not exist

#

but it exists

#

...

#

It gives me the link

#

https://t0.rbxcdn.com/e0ccbb9f6a457df3b3cd74515b7393c6

quartz kindle
#

wut

boreal iron
lament rock
#

TS only shows never in editor and never isn't a runtime type

limber mica
#

...

#

IT works

#

but it does not

#

Task

#

Failed

#

Successfully

lament rock
#

What's the type of the resolved promise value?

#

Axios probably just has shitty typings. Wouldn't be surprised. I hate axios

quartz kindle
#

its likely hitting a non-200 status code, which likely returns a type that shouldnt have data

lament rock
#

From what I've read, the code works fine, it's just TS yelling at them.

lament rock
#

Idk axios' api by heart, but if the code is working fine and you're following the tutorials properly, then just add a // @ts-ignore above the erroring line

#

alternatively, I would highly suggest using a different http lib

limber mica
#

yay

#

the error is gone

lament rock
#

Use ts ignore sparingly because it is most likely a logical error on your end

lucid prawn
#

how do i stop my bot from randomly crashing on error embed_field_value

pale vessel
#

Confirm that the value is valid before adding a field with that value

lucid prawn
#

I tested on a test bot and I didn't get the error

#

But when I did it on my main I got the error

pale vessel
#

Check where it came from

#

It should give you a hint in the error stack trace

lucid prawn
#

Let me re get the error one min

#

Sorry for ths ss I code on phone

quartz kindle
#

value cannot be empty

lucid prawn
#

It's not

quartz kindle
#

those variables can be empty

#

inspect them

#

for example if track.author is undefined, or null

#

then the value field will be empty

lucid prawn
#

Remove it? Cause it show the data

quartz kindle
#

if it errors, then there is no data

#

use it only if available

#

if its not available dont use it

#

or use fallback value

lucid prawn
#

See it work

quartz kindle
#

just because it works, doesnt mean its perfect

#

it can error

#

you are getting those values from something that you dont control

#

so you have to check them

#

if it worked then you would not have errors

lucid prawn
#

Ok thanks

#

I have a idea to fix it

earnest phoenix
#
    for id, reason in afks.items():
      member = get(message.guild.members,id=id)
      if member.id in message.raw_mentions:
        await message.reply(f"{member.name} is afk now|Note : {reason}")
#

im getting a error "None type" object has no attribute id

#

whats wrong can someone explain

#

get returns Optional[T] or in your case, Optional[Member]. So check whether or not it's None before accessing the id attribute

#

What's so funny

#

nothing

#

i found out the command is not adding stuff in my dict

#

can you help?

#

Also, make sure id is of type int. And you shouldn't use get in this case because you can just do a hash lookup with <Guild>.get_member

#

Send the relevant code, I guess

#
  @commands.command()
  async def afk(self , ctx ,*,reason = "Not Set"):
    member = ctx.author

    if member.id in afks.keys():
      afks.pop(member.id)


    else:
      try:
        await member.edit(nick=f"[AFK] {member.display_name}")

      except:
        pass

    afks[member.id] = reason
    embed = discord.Embed(title=":zzz: Member AFK",description = f"{member.mention} is now afk.",color = 0xED4245)
    embed.set_thumbnail(url = ctx.author.avatar_url)
    embed.add_field(name = "AFK Reason:",value = reason)
    embed.timestamp = ctx.message.created_at
    await ctx.send(embed = embed)
#

main code for afk command

earnest phoenix
simple stump
#

I'm trying to create a "dynamic queueing" system, where every second the range of the player matching with another person increases. I have the match making system down, but whenever I try to create a while loop with a setTimeout function whether it be:

while (true) {
  setTimeout(function () {
    // do stuff
  }, 1000);
}

Or (as it is currently):

do {
  setTimeout(function () {
    // do stuff
  }, 1000);
} while (true);

I get the "memory leak" error or whatever. How would I achieve a loop that waits 1 second, then if the condition is false loop back through again?

Current code:

let ready = 1; // test var, since while (true) is just an infinite loop
let skipse = 1; // dynamic queueing related; skipse increases by 1. dont have that system down, but that's unimportant right now.
do {
  setTimeout(function () {
    matchMaking(memberID, skipse, newState.member);
    ready++; // test var as said above
  }, 1000);
} while(ready < 100);
cinder patio
lament rock
#

You have to make sure to clear the interval after matchmaking is done though

#

Perhaps also give up after x amount of time and allow players to do content solo

earnest phoenix
#

Hey how can i add a bot using the bots id
through my bot
i use python btw

sage prairie
#

ok

boreal iron
#

Anything else would be non sense and a huge security risk

rose warren
#

Botmageddon!

boreal iron
rose warren
#

Bots inviting bots inviting other bots

boreal iron
#

That would probably be the result, yeah

rose warren
#

Add one bot and get raided by their 20 "friends bots"

boreal iron
#

Exactly what I said

rose warren
#

It's pretty clear tbh

boreal iron
#

An user has to manually grant a bot access to a server

#

A bot can’t do this.

earnest phoenix
boreal iron
#

A discord server member is using the bots invite link and confirms a form in discord to allow the bot to join the server

runic prairie
#

is it possible to use pycord with topggpy

earnest phoenix
#

If they didn't change d.py's interface, perhaps

#

someone can help me?

valid frigate
#

this is unrelated to discord bot development but rather a top down view of converting a base 10 integer to binary--is there a method of doing this where i can find the 2^nth power for any given number that, when subtracted, would never result in n > 0 where n is the base 10 int? say i have a big ass number like 2^18 + 1, what is the fastest way of finding out that this satisfies n > 0 because (2^18 + 1) - 2^18 > 0

timber yarrow
#

i developed the bot, how i can verify it here ?

valid frigate
#

iterating through exponents would work, however i feel like this is unnecessary computation and that there's a faster way to do this

#

what i aim to get out of this is to be able to know how many bytes to use when converting base 10 to binary, so as not to fill a 32 bit integer with zeroes when it doesn't need them

earnest phoenix
rose warren
livid jackalBOT
earnest phoenix
#

instead of reading file everytime to get prefix

#

i used watchFile

#

it detects when file is updated but doesnt change prefix :(

#

someone can help me please

#

you are passing blank argument or it doesnt exist

#

can i send the code?

#

send the line where error occurs

earnest phoenix
#

see that

#

if i send the code can u help me?

#

this has changed to null - NoneType

#

yes

#

what should i change?

#

when does it error

#

on start or when you use play command

#

a few times when I use the play command

#

something happens and voice_client becomes null

#

maybe when it changes voice channel

#

or it doesnt exist at all

#

and can not be solved?

#

everything can be solved

#

just catch the error

#

and update voice_client (on error)

#

does try/except work in async python?

#

yea

#

i think this is the main problem

#

in line 268

#

and 70

#

can i send the code to check?

#

why not

#

log data

#

print it

#

how

#

print(data)?

#

or an item from it

#

see if it exists

#

like that?

#

ye

#

it doesn't work now it always gives me the error

#

because you are logging it after error xd

#

put it after line 68

#

same..

#

put data in try/except thingy

cerulean matrix
#

npm kill shux

woeful pike
#

oh that's watchFile not readFile

quartz kindle
#

require has its own cache, so requiring the same file again wont update it, you have to read it with fs

woeful pike
#

you probably don't want to name both the function and variable prefix inside the module

eternal osprey
#

how do i disable pings for certain users?

#

like !disable @primal heron @role1 will disable the role1 pings for user1

lyric mountain
#

for user u cant

#

users don't have "is mentionable" switch

eternal osprey
lyric mountain
#

you CAN make their nickname unmentionable tho

#

by, yk, adding fancy 'n shitty letters

#

or zero-width space between letters

#

the username will still be mentionable tho

solemn latch
#

You can also shift click the name to mention it, or use the id to mention

eternal osprey
#

like can't i add a role to the users

#

and make them unmenionable

solemn latch
#

No

boreal iron
#

Best example is this discord

#

While I can mention Woo, I can’t mention the mod role

eternal osprey
#

aha i see

#

ah i rather meant, is it possible tot make sure people only get pinged if they have that certain role?

boreal iron
#

but nobody wanna mention Woo tho

eternal osprey
#

For example: !set @short wraith @role1 will make sure user can only be pinged if @role is being used (probably a role adder)

#

is there like any way to do that with djs v12

solemn latch
#

Like change it for the bot? Or for people in the server?

eternal osprey
#

people in the server

solemn latch
#

No

eternal osprey
#

wait i can justt add a role to a user

lyric mountain
#

@solemn latch me mention woo now

eternal osprey
#

that would work lol

solemn latch
#

But how do you prevent users from mentioning the user with the role then?

eternal osprey
#

no it'exactly what i want

#

@role1 would ping that user as he has the role

solemn latch
#

You said you wanted the opposite of that 👀

simple stump
#

I’m using the node.js MySQL library and am wondering how I can prevent SQL injections. I tried using con.escapeId, but I can still inject (see the image; I logged the query). Is there a better way to do this?

Pseudo code:
var sql = “SELECT * FROM table WHERE “ + con.escapeId(name, true);
con.query(sql);

I’m on mobile sorry

solemn latch
#

Prepared statements

earnest phoenix
#

How do i use slashComandBuilder?

solemn latch
solemn latch
lyric mountain
earnest phoenix
lyric mountain
#

just have this in mind and you're safe

earnest phoenix
#
const Discord = require('discord.js')
const { SlashCommandBuilder } = require('@discordjs/builders');

module.exports = {
  name: "ping",
  description: "pong",
    async run(client, i) {
      
  const data = new SlashCommandBuilder()
    .setName('echo')
    .setDescription('Replies with your input!')
    .addStringOption(option =>
        option.setName('input')
            .setDescription('The input to echo back')
            .setRequired(true));
      i.reply("Pong!", data)
    }
}
rocky dagger
#

to check permissions i thought this worked if (!interaction.user.permissions.has('BAN_MEMBERS')) but i get a error saying TypeError: Cannot read properties of undefined (reading 'permissions')

earnest phoenix
earnest phoenix
#

I didnt know intreaction has member option

rocky dagger
#

now i have this error TypeError: Cannot read properties of undefined (reading 'highest') with this code if (user.roles.highest.positon >= interaction.member.roles.highest.positon)

rocky dagger
#

const user = interaction.options.getUser('target');

#

i also tried with interaction.user instead of interaction.member

solemn latch
#

getUser gives a user, not a member

#

a User is the object not associated with any guild, so User.roles cannot exist
you need the member

rocky dagger
#

so i also need a getMember?

solemn latch
#

yeah

#

you also need to check getMember returns something thats not undefined.

rocky dagger
#

it works now thanks

eternal osprey
#
{"roleids":["34629395626262", "0395309530]}``` how would i check if a user has any of these roles? it's btw from a json file with the variable bypassed assined to it!
outer perch
#

how can an object from a Listener be null????

#

especially the interaction listener?

#

object is possibly null

#

wtf, every interaction has a channel

#

it can NEVER be null

solemn latch
outer perch
solemn latch
outer perch
#

so what the hell do I put to not trigger TS compiler?

#

cuz I didn't have strict before in the config

solemn latch
#

since you are just getting the channel id anyway, why not use the proper parameter? channelId

#

its not nullable

outer perch
#

oh, k

#

ty

#

not nullable you say? @solemn latch

#

ah forget mb

#

what about this?

outer perch
solemn latch
#

guild, and guildId are both nullable

outer perch
#

so I need to do as Guild for this?

wooden kindle
#

will this work or no

#

because im trying to make it work and its not

#

no error or anything

solemn latch
outer perch
#

usually when I imply that the type will be Guild it silences the error xD

round cove
#

Free nitro

#

Nice

#

Also handle the possible case it is null. Use a default string that will return no data. Etc

#

It's telling you it's possible because it is

solemn latch
round cove
#

Don't cast things with as

#

That's bad

smoky spire
#

it's not nullable on a commandinteraction but it is on other interaction types and they haven't narrowed the type to commandinteraction

solemn latch
#

heck, you are right

#

I need to stop assuming interactions are command interactions, just 99% of the time "interaction" variables are command interactions

wooden kindle
#

client.on("guildCreate", async guild => { 
  
    const owner = await client.users.fetch(guild.ownerID)
    const channel = client.channels.cache.get('CHANNEL_ID')
    const embed = new Discord.MessageEmbed()
      .setAuthor(`${client.user.username} | New Server`, client.user.avatarURL())
      .addField(`Server`, `Name: \`${guild.name}\`\nID: \`${guild.id}\``)
      .addField(`Ownership`, `Name: \`${owner.tag}\`\nID: \`${guild.ownerID}\``)
      .addField(`Server Info`, `Members: \`${guild.memberCount}\`\n> Channels: \`${guild.channels.cache.size}\`\n> Created: **${moment(guild.createdTimestamp).format('LL')}** (\`${moment(guild.createdTimestamp).fromNow()}\`)`)
      .setThumbnail(guild.iconURL({ dynamic:true }))
      .setColor('GREEN')
      .setTimestamp()
      .setFooter("Made by: Marshy")
      channel.send(embed)
  });```
#

this is for anyone that wants guild logs

#

sends a embed like this

earnest phoenix
wooden kindle
#

im just giving it out because why not

#

i give out some small things that people may like

lyric mountain
#

that's...literally written in the rules

rare trail
#

find the impossible thing that became possible

quartz kindle
#

impossibru

lament rock
#

Negative ping is possible

earnest phoenix
split hazel
#

it preemptively knew a packet was going to arrive

quartz kindle
#

time travelling packets

split hazel
#

discord has semi accurate unix timestamps

#

semi because negative pings sometimes happen

lament rock
#

Not every computer has a nuclear clock in it, so time precision isn't correct

#

close enough, but inaccuracies suck for time sensitive logic

split hazel
#

nuclear clock?

solemn latch
# split hazel nuclear clock?

its how extremely time sensitive stuff is handled, like gps satalites, where a thousandth of a second can make your gps think you are a mile off.

split hazel
#

you mean atom clocks?

solemn latch
#

probably 👀

split hazel
#

pretty cool

#

it will be inaccurate by a second in 30 million years

quartz kindle
#

show your client options

#

also, its messageCreate now, although message should still work

#

client.on("messageCreate", message => {})

earnest phoenix
#

whyyy

#

double instance

lyric mountain
#

discord is running on double instance as it seems

earnest phoenix
lyric mountain
#

mine sometimes send twice too

earnest phoenix
#

mine is always

tired panther
#

Is there a Script with which I can block the node Process & the Event Loop? Need it for testing sth.

earnest phoenix
#

then it's not my bot's error

earnest phoenix
#

i was saying what happened bc i don't have nothing that makes double instance

quartz kindle
#

while(true) {}

tired panther
hasty lotus
#

is there any way to fetch somehow more than the 100 last messages of a channel (basically, fetch all of them) ?

quartz kindle
#

new Discord.Client({ options here })

quartz kindle
#

if you want 1000 you need to fetch 10 times

hasty lotus
#

nice ty

quartz kindle
#

then thats why

#

intents controls what discord sends you

#

you made it so they only send you guilds and nothing else

#

no messages no nothing

earnest phoenix
#
(node:291) UnhandledPromiseRejectionWarning: Response: Internal Server Error
    at RequestHandler.execute (/home/runner/Clash-Chest/node_modules/discord.js/src/rest/RequestHandler.js:161:15)```
quartz kindle
#

it should work

#

how did you add it?

flat copper
#
module.exports = {
  name: "rr-add",
  aliases: [],
  group: "roles",
  description: "add a role into the category. ",
  clientPermissions: ["SEND_MESSAGES", 
"EMBED_LINKS"],
  memberPermissions: ["MANAGE_ROLES" || "MANAGE_SERVER"],
  examples: ["rr-add {category} {@role} {name} {emoji}" || "rr-add pings, @chat-ping, chat-revive, @ping"],
  cooldown: {
    time: 5000,
    message: ""
  },
  nsfw: false,
  run: async(client, message, args, data) => {
    try {
      let arg = args.join(" ").split(",")

      let category = arg[0]  

      let role = client.resolvers.resolveRole({
        message,
        search: arg[1]      
      })

      let name = arg[2]

      let emoji = arg[3]

      if(!category || !data.roles.map(c => c).find(c => c.category === category)) return message.error("Invalid Format\nExample: rr-add pings, @ping, chat-revive, emoji");

      if(!role) return message.error("Invalid Format\nExample: rr-add pings, @ping, chat-revive, emoji");

      if(!name) return message.error("Invalid Format\nExample: rr-add pings, @ping, chat-revive, emoji");

      if(!emoji || !emoji.startsWith("<") && !emoji.endsWith(">") && !emoji.includes(":") || !client.emojis.cache.get(emoji)) {
        emoji = null
      }


      let array = data.roles.map(c => c).find(c => c.category === category)

      console.log(array.roles)
      
       array.roles.push({
        name: name,
        role: role,
        emoji: emoji
      })

      await data.save()

      console.log(data)
      message.success(`Role added with name: ${name} to ${category}`)
      
    } catch (e) {
      message.error("Something went  wrong ;)..\nError: " + e.message)
      console.log(e)
    }
  }
}```
why its not adding role to array
#

ping me if you know

unique wagon
#

im trying to get user id from a button press

#

anyone know?

lyric mountain
#

did u enable on dashboard?

lyric mountain
unique wagon
#

Yeah.

lyric mountain
unique wagon
#

But it "isn't defined".

#

And I'm not entirely sure how to define it correctly.

#

Nevermind. I'm brain dead.

lyric mountain
#

log interaction and you'll see the proper variable name

unique wagon
#

My brain judt clicked.

#

I get it now. It all makes sense lol

flat copper
lyric mountain
#

well, ur not adding anything to it

quartz kindle
#

did you restart your bot?

spark flint
#

how do i make a url button with d.py

solemn latch
#

Does dpy support buttons?

spark flint
#

yeah

#

i got it working now

stray seal
#
    "activity": "{members} Members | !help",

How do i show how many people it is watching?

earnest phoenix
#

Heh

#

Hejka

#

Baka

green vale
boreal iron
stray seal
#

i have never done members before

#

I know basic code

lyric mountain
#

iterate over all guilds, collecting the member count of each one

#

then just sum it

stray seal
#

???

lyric mountain
#

...ok, I'll dumbify it more

boreal iron
#

Thanks I’m driving, don’t wanna hit a tree u know

lyric mountain
#

1 - get your guilds (servers) collection
2 - for (const guild of <collection name here>) <-- a loop
3 - get the members collection of guild and .size() it
4 - add that value to a variable
5 - 1 + 1 = 2

#

don't think I can go any simpler than that

boreal iron
#

No need to use the member collection as members aren’t cached at any time.
Just use the guilds property memberCount

earnest phoenix
#

with discord oauth2 i can't use cookies to keep a user logged into a site can i?

lyric mountain
#

u can

#

just remember the token invalidates after a week or so

earnest phoenix
#

and they'll remain logged in until discord logs them out?

#

dangit

lyric mountain
#

they'll remain logged in until YOU logs them out

boreal iron
#

Keep in mind the user data can’t be updated while using cookies since you don’t actually get an API request

#

Response not request

#

Means your user database might not be up to date as users can change their name or email etc.

lyric mountain
#

I just store the user id and use my bot to retrieve realtime data

solemn latch
#

I just now realized you can do sql update queries that return some of the pre updated values.

boreal iron
#

Hm if I remember right SELECT, UPDATE and INSERT can return values.
But didn’t know that one, too even after so many years.
Most likely because I’ve never had use case this could become relevant.

#

That’s why people say you’re never done with learning even if you think you know ur shit

lyric mountain
#

Sweet potatos aren't potatos

boreal iron
scarlet whale
#

When I try to watch the ad to vote it glitches and restarted every time pls help

#

Pls

#

Pls

boreal iron
#

cough ad blocker if so

errant flax
#

and if there was an error refreshing the access token ill just log them out pd_wheeze

#

same as if there was an error fetching there data

earnest phoenix
#

hello , i want to make a command for my bot so that it gives the user something when they vote , like dankmemer , i vote in top.gg and it gives a reward ..... how do i do that?

paper reef
#

how can I approved my bot

tardy hornet
#
TypeError: Cannot read property 'author' of undefined
    at embedEqual (/home/container/node_modules/discord-giveaways/src/utils.js:14:16)
    at /home/container/node_modules/discord-giveaways/src/Manager.js:536:33
    at Array.forEach (<anonymous>)
    at GiveawaysManager._checkGiveaway (/home/container/node_modules/discord-giveaways/src/Manager.js:471:24)
    at Timeout._onTimeout (/home/container/node_modules/discord-giveaways/src/Manager.js:587:58)
    at listOnTimeout (node:internal/timers:557:17)
    at processTimers (node:internal/timers:500:7)
``` where is the error
#

i have been searching

paper reef
#

help

earnest phoenix
proven lantern
#

nm, dont use oauth

earnest phoenix
#

ugh rip i did not understand

#

what is it with oauth

proven lantern
#

https://top.gg/bot/BOT_ID/webhooks

earnest phoenix
#

OOOO THX

proven lantern
#

go to your bot page

sacred aurora
#

put your not found endpoint last

#

okay

woeful pike
#

if only there was an html element for making someone go to another part of your site

errant flax
#

how do i add a site icon?

#

like these

#

with html

cinder patio
#

you mean a favicon?

timid fog
#

i need help
my bot is running on a server but when i use its commands it doesn't respond
python1 from something.xyz sevrer to be precise

earnest phoenix
timid fog
#

why?

errant flax
#

./ - the current directory
../ - the parent of the current directory

#

@earnest phoenix show ur files

#

and show the line/code where the error is coming from

earnest phoenix
#

Slay queen

#

Yaaas

earnest phoenix
#

Try using __dirname /../../../shop.json

#

__dirname + "/../../shop.json"

errant flax
#

afaik fs reads files at the main directory

#

aka home/runner/yourProjectName

#

so act like fs is at index.js aka at the top of everything

#

do .readFileSync("./shop.json")

#

fs roots r always at home/runner/yourProjectName/ in repl.it

errant flax
#

yes i am

earnest phoenix
#

Root is where the file is

errant flax
#

wait so what is it called then

#

im bad at naming things

earnest phoenix
errant flax
#

i think its directory

#

idk

errant flax
#
body {
 background-color: <%= def.site.color %>;
}
#

why wont it change the site bg's color?

#

it just worked a few mins ago

#

??

lyric mountain
errant flax
#

whats that

lyric mountain
errant flax
#

it works

#

TYSM

#

cant believe i got stuck at this for hours

lyric mountain
#

lul

earnest phoenix
#

in nextjs is there any difference between

pages
  /route
    /index.jsx
    /subroute.jsx

and

pages
  /route.jsx
  /route
    /subroute.jsx
grim aspen
#

Also you need a folder called commands

#

That way that when the interaction is called, it can pull the command specified from the commands folder as code

earnest phoenix
grim aspen
#

Oh

onyx torrent
#

I am thinking to take errors/console_logs in a specific call and send all of them to a specific channel in my server

So what I thought is everytime I use console.log , I will replace it by calling a specific file say log.js

Can anyone guide me about this (:

earnest phoenix
cinder patio
#
const __realConsoleLog = console.log;

console.log = function(...data) {
    // Send here...
   __realConsoleLog(...data);
}
#

^ you would have to do that when you have access to the client, or the channel

#

in the ready event for example

earnest phoenix
#

functions are objects and objects are references

cinder patio
#

short answer, no

onyx torrent
#

nah i think you guys didnt understood

#

i am not generating a log file

earnest phoenix
#

i get your question now

onyx torrent
#

i want my bot to send all logs to some channel in discord...so i can check it easily

earnest phoenix
#

you are trying to replace console.log with a log file reader

onyx torrent
#

wait i am showing

earnest phoenix
cinder patio
#

I'd keep the content in-memory so you don't have to read a file every time

onyx torrent
#
    .
    .code
}catch (e){
myfunc(e);
}```
Now that myfunc() is in some file ```logs.js```, and i'm using it wherever i want by calling it with the help of a variable say ```const myvar = require("./logs.js")```

and myfunc() simply takes e as argument and does ```channel.send(e);```
#

i am thinking something like this

earnest phoenix
#

so what's the problem

boreal iron
#

Stack traces can easily be larger than the max amount of chars you can send via your message.
If sending the error fails where do send the error than? okeh
Keep errors in log files or you console.

earnest phoenix
#

put the entire error in a file but only send the error message in discord

onyx torrent
#

and yes also i can run djsv13 in replit but slash commands wont work.......any fixes?

earnest phoenix
#

you can use node v16 on repl

#

npx node index.js

onyx torrent
#

i tried

#

but somehow it again stuck with 12

earnest phoenix
#

you need to put the command in your .replit file

#
run="npx node index.js"
#

otherwise pressing the run button will use v12

onyx torrent
#

ah ok

#

and how to download node 16

#

tell me that too

#

i will follow you

earnest phoenix
#

that command already downloads node 16 on repl

onyx torrent
#

const myChart = new QuickChart();
myChart.setConfig({
  type: 'bar',
  data: { labels: ['Hello world', 'Foo bar'], datasets: [{ label: 'Foo', data: [1, 2] }] },
});```

I use resultsArr[][] for results.
[0][0] and [0][1] matches in case of tie
In all other case [0][0] is the winner

I want to use my data to create charts displaying how many user has voted for each.

How can I fit my data in the above format?
onyx torrent
earnest phoenix
#

the actual node will always be v12

#

try running npx node -v

onyx torrent
#
/home/runner/VOTIFYv13/node_modules/@discordjs/rest/dist/lib/RequestManager.js:66
        const hash = this.hashes.get(`${request.method}:${routeID.bucketRoute}`) ?? `Global(${request.method}:${routeID.bucketRoute})`;
                                                                                  ^

SyntaxError: Unexpected token '?'```
earnest phoenix
#

did you even read my message

onyx torrent
#

yes?

earnest phoenix
#

i said use npx node instead of node

onyx torrent
#

f

onyx torrent
signal estuary
#

How can I disable a slash command? So a user cant use the slash command any longer
discord.js v13

earnest phoenix
#

but you can check the user's permission before running the command

#

for detritusjs you can just do onBefore: context => context.member.hasPermission("smth")

signal estuary
earnest phoenix
#

¯_(ツ)_/¯

signal estuary
#

Are bots able to record something / to hear something in voice chats?

earnest phoenix
#

yes

onyx torrent
#

(:

earnest phoenix
#

I keep getting this error when I try to use npx or npm i -g

> npx vite --host

npm ERR! code ENOLOCAL
npm ERR! Could not install from "AFTAB\AppData\Roaming\npm-cache\_npx\6008" as it does not contain a package.json file.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\ASIFA AFTAB\AppData\Roaming\npm-cache\_logs\2021-10-06T14_38_38_588Z-debug.log
Install for [ 'vite@latest' ] failed with code 1
onyx torrent
#

your dir has a package.json?

earnest phoenix
#

it doesn't

onyx torrent
#

yes shouldn't affect as u're using a -g flag

earnest phoenix
#

you didn't get the error

#

my global dir has no package.json because the dir doesn't exist

flat copper
#
module.exports = {
  name: "rr-add",
  aliases: [],
  group: "roles",
  description: "add a role into the category. ",
  clientPermissions: ["SEND_MESSAGES", 
"EMBED_LINKS"],
  memberPermissions: ["MANAGE_ROLES" || "MANAGE_SERVER"],
  examples: ["rr-add {category} {@role} {name} {emoji}" || "rr-add pings, @chat-ping, chat-revive, @ping"],
  cooldown: {
    time: 5000,
    message: ""
  },
  nsfw: false,
  run: async(client, message, args, data) => {
    try {
      let arg = args.join(" ").split(",")

      let category = `${arg[0]}` 

      let role = message.guild.roles.cache.get((arg[1].match(/\d{17,19}/)||[])[0]) ||
      message.guild.roles.cache.find(r => r.name === role);


      let name = `${arg[2]}`

      let emoji = `${arg[3]}`

      if(!category || !data.roles.map(c => c).find(c => c.category === category)) return message.error("Invalid Format\nExample: rr-add pings, @ping, chat-revive, emoji.");

      if(!role) return message.error("Invalid Format\nExample: rr-add pings, @ping, chat-revive, emoji");

      if(!name) return message.error("Invalid Format\nExample: rr-add pings, @ping, chat-revive, emoji");

      if(!emoji || !emoji.startsWith("<") && !emoji.endsWith(">") && !emoji.includes(":") || !client.emojis.cache.get(emoji)) {
        emoji = null
      }
        
      await data.roles.map(c => c).find(c => c.category === category).roles.push({
        name: `${name}`,
        role: `${role.id}`,
        emoji: `${emoji}`
      })
      
      await data.save()
      
      message.success(`Role added with name: ${name} to ${category}`)
      
    } catch (e) {
      message.error("Something went  wrong ;)..\nError: " + e.message)
      console.log(e)
    }
  }
}```
#

its not pushing data to array

onyx torrent
flat copper
onyx torrent
#

wheres the schema then?

#

are you sure the schema works perfectly?

#

first check that

flat copper
#

yep

#

i consoled it

#

and its saying
{ category: "pings", role: [] }

#

roles array is empty

earnest phoenix
#

I wanna make simple slash command handler can someone help

signal estuary
lapis yoke
#

Hi

#

Can someone help me know how to code a music and mod in same bot

dense hinge
#

i keep getting: ```
C:\testatis3\node_modules\discord.js\src\rest\RequestHandler.js:298
throw new DiscordAPIError(data, res.status, request);
^

DiscordAPIError: Cannot send an empty message
at RequestHandler.execute (C:\testatis3\node_modules\discord.js\src\rest\RequestHandler.js:298:13)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async RequestHandler.push (C:\testatis3\node_modules\discord.js\src\rest\RequestHandler.js:50:14)
at async TextChannel.send (C:\testatis3\node_modules\discord.js\src\structures\interfaces\TextBasedChannel.js:171:15) {
method: 'post',
path: '/channels/888810902294523994/messages',
code: 50006,
httpStatus: 400,
requestData: {
json: {
content: undefined,
tts: false,
nonce: undefined,
embeds: undefined,
components: undefined,
username: undefined,
avatar_url: undefined,
allowed_mentions: undefined,
flags: undefined,
message_reference: undefined,
attachments: undefined,
sticker_ids: undefined
},
files: []
}
}

#

its in discord.jsv13

solemn latch
#

Code?

wheat mesa
#

Somewhere in your code you’re sending a message with no content in it

dense hinge
wheat mesa
#

It’s likely the last embed, where you get data from a json

#

The line with json.raw

dense hinge
#

yep forgot to change message.channel.send(TAFEmbed); to message.channel.send({ embeds: [TAFEmbed] }); biggest facepalm moment ever for me

wheat mesa
#

Not only that, but your last embed sets the description field to data fetched from an API, which could potentially be empty (depending what the api responds with, not sure)

#

Which would also cause an error

earnest phoenix
#

can i get member in interaction options

split hazel
#

nodejs discord bot fanboys

#

what is a nice lib other than discord js which has a slash command builder and is nice

#

i refuse to use that burning garbage of a library called discord.js

proven lantern
#

create an interaction url endpoint and dont use a libraru

split hazel
#

that sounds like a good idea but i quit making production bots

#

i just want a nice library to have fun with friens

wheat mesa
#

detritus smirk

split hazel
#

detritus sus

#

does it support a slash command builder

#

yes it does nice

earnest phoenix
#

My interaction is replying and then i get error interaction could not found

earnest phoenix
#

how do i slow up a command? like if the message is sent, it'll respond 5s later

tribal crow
#

setTimeout()

wheat mesa
earnest phoenix
#
const embed = new Discord.MessageEmbed()
embed.setTitle("Pong") 


embed.setTitle is not a function

Discordjs being much op

#

Onu bende biliyorum

#

Koşul sağlanırsa başlığı farklı ayarlaması için böyle kullanmam lazım

wheat mesa
#

Is that all of your code?

earnest phoenix
#

I know that
I have to change title if the condition is met

#

No

earnest phoenix
# wheat mesa Is that all of your code?
const Discord = require('discord.js')
module.exports = {
    name: 'ping',
    description: 'Shows ping',
    options: [],
    async run(client, i, lang, options) {
      
      const embed = new Discord.MessageEmbed();
      
      if(lang === "english") {
        embed.setTitle("Pong! eng " + client.ws.ping)
      }
      if(lang === "turkish") {
        embed.setTitle("Pong! tr " + client.ws.ping)
      }
      
        return i.reply({
          embeds:[embed]
        })
      
    },
};
grim aspen
#

it's just .setTitle()

solemn latch
#

Double check you saved and restarted the bot

grim aspen
#

the embed before it is not nessescary

earnest phoenix
#

It is

#

Or not

#

It doesnt working

wheat mesa
earnest phoenix
grim aspen
#

ok lemme rephrase

#

instead of embed.setTitle()

#

it should just be .setTitle()

earnest phoenix
#

My problem isnt if it necessary......

wheat mesa
#

No, you can’t do that in his case.

#

That only works when you instantiate the embed and put the options right underneath it

#

Otherwise js doesn’t know what object you’re trying to call .setTitle() on

#

The way he has it looks correct to me

grim aspen
#

hold on lemme look back at my code

earnest phoenix
wheat mesa
#

^^

earnest phoenix
#

Sorry my cam is broken and i am lazy to use ss of pc

earnest phoenix
grim aspen
solemn latch
#

You are using it on the embed there too

earnest phoenix
#

Creeper

#

This isnt same thing

wheat mesa
#

Yes, like I said you can do that if you put the options right underneath instantiating the object

#

But what he’s trying to do is set the title based on the condition of the language

solemn latch
grim aspen
#

hold on what is lang supposed to be

solemn latch
#

Same language

wheat mesa
#

Lang in his function is the language the bot is set to (Id assume)

solemn latch
#

Oh you mean the variable kek, shouldn't matter in this case as it's running

earnest phoenix
#

const lang = await db.get(lang+i.guild.id) || "english"
cmd.run(client, i , lang)

solemn latch
#

I guess log embed and see if it's a proper embed.

solemn latch
#

No idea why it wouldn't be though

earnest phoenix
#

It fixed by nothing

solemn latch
#

Kek weird

grim aspen
#

i was busy looking at something else

earnest phoenix
#

Discordjs really weird

#

My bot creashed many times by nothing

#
if (message.member.permissions.has(Discord.Permissions.FLAGS.MANAGE_MESSAGES)) return;
                     ^

TypeError: Cannot read properties of null (reading 'permissions')
wheat mesa
#

Someone likely tried to use the bot in DMs

earnest phoenix
#

if(!message.guild) return

wheat mesa
#

Member objects are associated with guilds, therefore you would only receive a member object if someone used it in a guild

earnest phoenix
solemn latch
#

Partials enabled?

earnest phoenix
solemn latch
#

Then probably not, weird.

spark flint
#

anyoen know how i can do render_templates but in express.js

#

render_templates is from Python

#

and I need to render HTML files but with data added

solemn latch
#

Like ejs?

spark flint
#

yea

#

i'm using ejs

#

well want to

solemn latch
spark flint
#

in flask I would add {{variablename}} to the html then do return await render_template("index.html", variablename=user.name) etc

solemn latch
#

Pretty much the same with ejs

spark flint
#

ah alr

hallow bobcat
#

Hi

#

Pless project button

#

@earnest phoenix

#

@solemn latch

earnest phoenix
#

/ban is coming

wheat mesa
#

Huh

earnest phoenix
solemn latch
#

I dont know what that means, and no need to tag random people

hallow bobcat
#

Pleas

grim aspen
#

?

#

please what

earnest phoenix
grim aspen
#

mb

hallow bobcat
#

Pleas project bot button

grim aspen
#

huh?

solemn latch
#

You need help with buttons?

earnest phoenix
#

He wants a boy with buttons

hallow bobcat
#

Yes

earnest phoenix
#

I think

#

استخدم مترجم

hallow bobcat
#

I’m kurdish

grim aspen
#

main language?

earnest phoenix
#

Wergêrê bikar bînin

hallow bobcat
#

Language Me Kurdish

earnest phoenix
#
const Discord = require('discord.js')
module.exports = {
    name: 'ping',
    description: 'Shows ping',
    options: [{
      name: "input",
      description: "input",
      type: "INTEGER",
      addChoice: "0",
      required: true,
    }],
    async run(client, i, lang, options) {
        
    
        let x = ${i.options.getString('input')} 
          return i.reply(x)
    },
};

How do i add choice

boreal iron
#

Choices need to be an array of objects


"choices": [
                {
                    "name": "Dog",
                    "value": "animal_dog"
                },
                {
                    "name": "Cat",
                    "value": "animal_cat"
                },
                {
                    "name": "Penguin",
                    "value": "animal_penguin"
                }
            ]

I’m not sure if they exist in combination with interger inputs but you will find yourself I guess

rich grail
earnest phoenix
#

I meant bot not boy lol

earnest phoenix
rich grail
earnest phoenix
#

data.embeds[0].description: This field is required
I get this error this time

dense hinge
#

i keep getting:

/home/container/node_modules/discord.js/src/rest/RESTManager.js:32
    const token = this.client.token ?? this.client.accessToken;
                                     ^

SyntaxError: Unexpected token '?'
    at wrapSafe (internal/modules/cjs/loader.js:915:16)
    at Module._compile (internal/modules/cjs/loader.js:963:27)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
    at Module.require (internal/modules/cjs/loader.js:887:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.<anonymous> (/home/container/node_modules/discord.js/src/client/BaseClient.js:4:21)
    at Module._compile (internal/modules/cjs/loader.js:999:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)

at my hosting but at my pc it does work

earnest phoenix
#

npm i node@latest

boreal iron
wheat mesa
#

Does djs allow you to disable certain caching options or is that not a thing

solemn latch
#

on v13 it should be

wheat mesa
#

Ok

signal summit
#

My bots heartbeat has been blocked for more than 30mins and i am unable to somehow bring the bot back online without fully shutting down it. Should i kill the process?

#

Nevermind i force killed the process

west stag
#

How did I never notice Windows Terminal its like cmd and Powershell combined + extras

boreal iron
#

Because it hasn’t be rolled out on Windows consumer versions not even on the latest server version for some reason.

#

But you could download it yourself the whole time

#

Windows has been a huge junkyard over the years trying to redesign things, force apps etc and overload the ecosystem with trash nobody wants but still keeps ALL the old functionality on board

west stag
#

Seems to be installed on Win11

boreal iron
#

Which has become a huge waste of space over the years especially on consumer versions

#

Maybe idk, not interested in version 11 anyways

wooden kindle
#

so when ur bot gets added to a guild its called "guildcreate" whats it called when it leaves a guild/gets kicked

pale vessel
#

guildDelete

wooden kindle
#

WHAT TF DOES THIS MEAN

spark flint
#

The address is already in use

#

Try changing port

green vale
#

so im working with react but this is more of a css issue - i've been working with flexbox the entire time (without margins and stuff) but it's ever so slightly off-centred (as you can see by the orange border above being slightly offset from the actual centre in the footer)

#

also the colours are just guides for me to figure out this issue - the site doesn't actually look this shitty if you're wondering

earnest phoenix
#

so im trying to get my bot to reply to a message with an embed, and message.reply() is not working

green vale
#

is it returning any errors?

earnest phoenix
#

it is not

green vale
#

you've tried { embeds: [<MessageEmbed] }, yes?

earnest phoenix
#

No

wheat mesa
#

Are you doing message.reply({embeds: [embedVariable]})

earnest phoenix
#

its just message.reply(Embed)

earnest phoenix
#

ah ok

#

thanks!

green vale
#

<Message>.reply({ embeds: [<MessageEmbed>] })

wheat mesa
#

That syntax works in v12 but isn’t supported in v13

green vale
#

np (:

earnest phoenix
green vale
#

hate that change

earnest phoenix
#

id imagine id have to update nodejs to nodejs 13+ too

#

because im on node 12 rn

wheat mesa
#

What’s your code?

#

You’re using djs v12 for sure if you’re still on node 12, as djs v13 requires nodejs 16

earnest phoenix
#

i dont know, i just npm installed discordjs

#

id have to check

wheat mesa
#

Do node -v

earnest phoenix
#

oops

#

cutoff the 1 lol

#

i meant i dont know if im not djs 12 or 13

wheat mesa
#

Whatever version of djs you have (it has to be v12 if you’re on <nodejs v16), the error you’re getting isn’t related to the version

#

It’s hard to work off of just an error, can you send your code?

earnest phoenix
#

yea, lemme try to update to nodejs 16 just to see if it helps

wheat mesa
#

It’s not going to change anything

#

Don’t bother with that for now

#

Your code is the issue here

earnest phoenix
#

alright

wheat mesa
#

That’s why

#

You’re setting your title field to an empty string

#

Which isn’t allowed

earnest phoenix
#

o

#

can i just remove .settitle?

wheat mesa
#

Yeah

#

It’s not a required field

earnest phoenix
#

thanks

#

this is rather interesting

earnest phoenix
#

oh wait do i need message.channel.reply

#

no

#

hm

#

this is the code

#

and i get this

#

i am very confused

boreal iron
#

Your title is empty as the other fields contain chars

earnest phoenix
#

it shouldnt be

boreal iron
#

You can log your embed object and will see it is

#

console.log(sucsess)

#

Btw

earnest phoenix
#

even for some

#

ok

boreal iron
#

success

earnest phoenix
#

ill try that

#

hold on

boreal iron
#

Is the right term

earnest phoenix
#

i know its spelt wrong

boreal iron
#

Just to say okeh

earnest phoenix
#

xD

#

ok lemme run the command

boreal iron
#

Oh

earnest phoenix
#

yea its weird

#

im not sure whats going on

solemn latch
#

second time today djs has been weird

earnest phoenix
#

i miss 12

#

lol

boreal iron
#

Missing what?

earnest phoenix
#

djs12

#

I miss that version

boreal iron
#

Try to set the title as description

earnest phoenix
#

alright

#

hold on

boreal iron
#

Maybe embeds with a titles only aren’t allowed to work anymore

earnest phoenix
#

nope, same error

#

Now im worried because my bot is getting reviewed soon

#

lmao

#

this is the 2nd time ive applied

boreal iron
#

Can you to add a content to your reply?

earnest phoenix
#

does it have to have a value

boreal iron
#

message.reply({ content: "text", embeds: [embed] });

earnest phoenix
#

yea

solemn latch
#

you can make it a zero width space so it doesnt appear

earnest phoenix
#

ij

#

ok*

boreal iron
#

Let’s see if the embed pops up

earnest phoenix
boreal iron
#

Write some text in the content option

earnest phoenix
#

should i put something or not

#

ok

boreal iron
#

At least 1 letter

earnest phoenix
#

cross your fingers

earnest phoenix
#

djs is broken

#

no embed

#

just that

#

its not even replying

boreal iron
#

Wtf what’s this message coming from?

earnest phoenix
#

i am very very puzzled

solemn latch
#

the other weird issue we had earlier was embed builder related too.
try manually making the embed

boreal iron
#

But the object is correct

solemn latch
boreal iron
#

{ title: "test", description: "test" }

#

Try that one please

#

… { embeds: [this above] }

#

Without the content option

#

reply({ embeds: [{ title: "test", description: "test" }] }.catch(…);

earnest phoenix
#

same error

boreal iron
#

Okay seems to be an issue on discord’s end then I guess

earnest phoenix
#

that sucks