#development
1 messages · Page 1471 of 1
@earnest phoenix wouldnt it need to be post and not put?
i installed the module and heroku says: Error: Cannot find module 'dblapi.js'
const DBL = require('dblapi.js');
const dbl = new DBL(process.env.DBL_TOKEN , client);```
wdym? it's not official?
It's not. @top-gg/sdk is official
-_-
but i am using
"dblapi.js": "^2.4.1",
That package is not maintained anymore
🥲
How can i set my bot status to COMPETING?
Anyone knows how can i detect reactions in message.content? using python
Something like message.reactions
There is no COMPETING. only PLAYING, LISTENING, WATCHING and STREAMING
does not exists i guess the current message object is like this: <Message id=790564985985564682 channel=<TextChannel id=... name='test-bot' position=7 nsfw=False news=False category_id=...> type=<MessageType.default: 0> author=<User id=.... name='Erdem Ipek' discriminator='5224' bot=False> flags=<MessageFlags value=0>>
@tawny oar I believe there is discord python docs
yeah thanks im searching
yes there is
Integrate your service with Discord — whether it's a bot or a game or whatever your wildest imagination can come up with.
bots can use everything except type 4
Hello all !
An idea how can i fix it ?
repr doesn't include all things ya know
Here is my code
Tf?
some bots have
Activity type 5
Maybe ill do TYPE: COMPETING
unless your library supports it, you can't use it
Nvm I just did TYPE: COMPETING
How can i get all members of a guild?
in which library
js
sixth sense
Hi
lol
Im bot developer
okie
im bot developer
im bot developer
Im bot developer
im bot developer
im bot developer
Is there a npm module which extracts each indidiual frames from a gif ?
for node.js and not web javascript
does anyone know how to make hyperlinks in discord.py embeds?
yes
hey
how can i reach the emoji prop in this example in python
[<Reaction emoji='😀' me=False count=1>]
its the result list of message.reactions
i want to reach only the : 😀 part
Is there a npm module which extracts each indidiual frames from a gif ?
for node.js.
How can I find the date an account was created without having a bot that shares a guild with them? (This is for a website feature)
In JS
It looks like DiscordRep did... It can find the created date of accounts that as far as I know have never signed in (bot users for example)
I just created a bot not in any servers and it can get the account age.
hi how do i add more than one title on an embed
well first depends on your language, if discord.js just use .addField() a bunch of times
yea
you can also use .setDescription
yes you can
you can use REST to get users globally
that returns only basic information though
the creation date can be extracted from the id though
since it's a snowflake
Integrate your service with Discord — whether it's a bot or a game or whatever your wildest imagination can come up with.
you can't access the info of users which don't share a guild of the bot @earnest phoenix
you very much can
you yourself try it
hey guys
i need some help
type: 'category',
position: 1,
permissionOverwrites: [
{
id: message.guild.id,
allow: ['VIEW_CHANNEL'],
}]
}).then(cat => {
message.guild.channels.create('Rules', {
type: 'text',
parent: cat,
permissionOverwrites: [
{
id: message.guild.id,
allow: ['VIEW_CHANNEL'],
}]
}).then(cat => {
message.guild.channels.create('Rules', {
type: 'text',
parent: cat,
permissionOverwrites: [
{
id: message.guild.id,
allow: ['VIEW_CHANNEL'],
}]
})
})
request made with a token from my private testing bot
So i am trying to create two channels under the same category
well it doesn't give you the time of creation
I was saying that
hey guys
bitch are you fucking blind
the id is a snowflake
why the the owner's crown sometimes disappear
?
@hollow sedge do you know how to code channels under categories
Not in d.js
The time of creation is the time that they joined
The guild
what
time of creation != join date
i need to create channels under a specific category anybody know how to do that
I wasn't sure what discord calls it though. What I meant was that the time they were calling the time of creation might have been the join date.
surely not
https://discord.js.org/#/docs/main/stable/class/GuildChannelManager?scrollTo=create look into options.parent @crimson wagon
Yeah idk though
this message confirms the context of the message is about account age
I got confused for a sec cause that says 4:09 PM
Anyway I was just saying that it wasn't the time of creation, not that he should use it because it is the join date.
is there any way for a video to be sent without having to download it?
what
im trying to make my bot send a video like #memes-and-media message, but it makes u have to download it
and not have a button which forces u to download it to watch it
hey where do i find the mongodb connection uri on their site?
But videos are already like that
Well did discord intend to give info about any user to anyone ?
Lol
Integrate your service with Discord — whether it's a bot or a game or whatever your wildest imagination can come up with.
if (author !== null && timeout - (Date.now() - author) > 0) {
let time = ms(timeout - (Date.now() - author));```
ok I didn't know
i want timeout to be 30 minutes
thats like not forcing u to download
but uh
I think it has to be a supported filetype
if it helps? @hollow sedge
@digital ibex
you didn't send a video with valid data if it doesn't embed like that iirc
where do i find my dbname?
give me a second i'll try it
for what ^^
well is there a way to get if a user is in a guild ? @earnest phoenix without the bot sharing the guild ?
if you're using a db like sqlite, it should auto-create a db file
only through oauth, guilds are sensitive data
but that was not the original question
alright ty
let timeout = 600000;
if (author !== null && timeout - (Date.now() - author) > 0) {
let time = ms(timeout - (Date.now() - author));```
how to make it so timeout is 30 minutes (rn its 10 mins in ms)
im using parse ms
Just triple it?
could anyone please help me
really big number?
So?
how do i connect mongodb to my application
Do that times 3 then
oh just a regular calculation?
Ok do that * 3
1000 * 60 * 30
oh
yeah
ok
You shouldn't need a calculator for that anyway lol
I prefer to use multiplication so its easy to tell how much it is
yep
makes it easy when you see 3 values multiplied rather than like 18 milion or whatever that is
@digital ibex works fine for me
means you're not sending valid video data
for it to embed
or you've got the wrong extension
i suggest ffmpeg to easily convert
okay ty
you really don't
why would you in the first place
it's for an oficial bot that is only in one server
oficial for that server
they want to have a command that sends an announcement to all members
@everyone exists for a reason
Ya ik
but they would have that command
simply tell them "no❤️"
mass dming members goes against the TOS and will get the bot flagged
There's no point in sending a message to each member
javascript?
If they don't see the mention then they probably don't care about the message
this tbh
dming people will do nothing but provoke anger and make them more likely to report the bot
also if i would get a DM from a Bot relaying a @ everyone i would just block the bot
@earnest phoenix
Nice
so @earnest phoenix is there anyway i can do it without having the video on my pc? like the video is at mywebsite.com/video ?
you have to download it
you don't have to actually save it on your pc though
just download the video into memory in code
i did that with the screenshot i sent you
how do i do that?
which language are you using
js
and you need to convert the video to mp4 and then send it, yeah?
yeah
anyone having problem with client login rn?
well, i'd suggest using ffmpeg for this
now with ffmpeg there are two ways, easier and harder way
easier way, saving to a file:
start ffmpeg with these args
-i url ./some_unique_id_you_generated_in_your_code.mp4
and once ffmpeg kills itself, you know the download finished
upload the said file
delete it
harder way, piping directly into your code, no saving into files:
start ffmpeg with these args
-i url -f mp4 pipe:1
the output of ffmpeg will now be piped to stdout, once ffmpeg finished the data in stdout can directly be read from your code and sent to whatever library to upload
okay, i'll prob just use the first way
if (args[0] === "Programmer" | "programmer")```
this doesnt work, but how would i make it so it does either choice
ty
that's not how js works
so if args 0 is programmer or Programmer then it is fine
The if statement executes a statement if a specified condition is truthy. If the condition is falsy, another statement can be executed.
k
The logical OR (||) operator (logical disjunction) for a set of operands is true if and only if one or more of its operands is true. It is typically used with Boolean (logical) values. When it is, it returns a Boolean value. However, the || operator actually returns the value of one of the specified operands, so if this operator is used with non...
ah it was two i thought it was one
That's not the only problem
that's a bitwise operation 
i've seen worse
people thinking math notation can directly be translated into code
i.e. power of, which in math notation is ^
but in programming, it's XOR
lol
What does ^ do anywawy
at least + is a thing
it's exclusive or
either one or the other one can be true for the result to be true
^
i remember discovering bit shifting and using it everywhere because it was a great way to intimidate teachers for something simple
like multiplication
lol
I don't know if this is the right channel but for my bots long description when i write it like this it doesn't make new lines. does anyone know how to make new lines on the long bot description (top.gg)
lmao
markdown stuff
for new lines you have to separate stuff with two newlines
Line 1
Line 2
Line 3
I'm pretty sure putting a few empty spaces at the end of each line also works
is there a way to change font size?
there's certain sizes markdown provides, headings
but if you want direct control, html and css ^
counter-strike source obviously
exactly
how do you math.floor a random number between two certain integers
e.g: 100-150
wouldn't it be like *100 + 151 (maybe idk not sure)
Math.floor(Math.random() * (range between two numbers + 1) + starting number)
range? as in like 50
yeah
so 100-150, (50 + 1) + 100
mhm
kk ty
that doesn't look right
is it wrong?
no your answer isn't but what samm said afterwards is
oh
How do I get this thing?
/bots/{bot.id}/check
library?
python
use requests
well, It's okay
let jobchoices = ['programmer', 'Programmer', 'Tech', 'tech']```
How would I check for these values in args
o
yeah ill do jobchoices.toLower()
but
how exactly do i check for these values in args
Get the arg and use .includes
what do you mean by checking
so if args = jobchoices, carry on. if args != job choices send that they provided an invalid job
ah
includes alright
hol up
you can't compare arrays or objects
so you gotta manually compare if every arg is equal to its jobchoices equivalent
hi
somebody there
hi
cant wait for slash commands to be released on discord.js v13
Does somebody has a example for bot web page with auth
slash commands are a joke
just a utility to jerk off with
lmao yes
bruh
they are so inefficient
it would be so much nicer if there was gui for it
and all you had to do was set an endpoint for a command
like /bot/commands/help
@crimson vapor what?
/ commands
they have a UI to guide users
barely
what are you talking about
did something change?
discord aint good enough to make their own bot hosting/dashboards/configuring/anything that can be done with code
what
I mean
it would be nice to just be able to create a new command in the bot application dashboard and set the arguments and endpoint
hopefully
It's still on its early stage
A dashboard for this task isn't that hard
thats what I assumed was going to be added
which is why I thought it was a good idea
Yes but that means there will be bigger noobs making bots
that's not a good reason to not have it
I've dealed with too many
do u have own
There will still be
because realistically you wouldn't be able to selfbot with these / commands
did u do that serverside
autoclickers....
how though
you can autoclick on stuff in the UI and BAM selfbot done
because a user can't have / command endpoints
oh
how i can add me bot
Invite it
But it's your bot?
we don't invite bots to this server
You need MANAGE_SERVER permission in the specific server to add the bot
And if you're talking about this server then read what MILLION said
?
Very descriptive about what you don't understand
?
hmm
i am UA
hey UA
I am US
Hi US this is CA
lol
i could not find a working way to get all text channels in discord.py
i have managed to fetch every channel but i just need to get text channels anyone knows how?
currently i am using client.get_all_channels()
Isn't there something like utils.get(channels, key) or something
Yes
let me check
btw @pale vessel my reaction collector still no work
you can pass in a lambda
nice
👻 ping
*reaction collector
YES MY BOT GOT APPROVED!
Congrats
epic
ty

Almost 13 hours
eh it is just open
Lol
Thank God discord.js has less weebs and more pogeyrammers and they helped me fix my reaction collector
unlike some dbl i could mention
okie
I need help with the top gg api
when I start the program it ends
python btw
Hey guys, so I am a bit confused with a partial. So I have the partials USER, MESSAGE, GUILD_MEMBER and REACTION enabled. (And i have the intents enabled etc.)
However, if a guildMember is not in the cache, the guildMemberUpdate event does NOT fire, even with the partials. Am i missing something?
@pale vessel need help rly fast
how fast?
how ur sitemap.xml look like?
I don't have one
what
what
what
how u post ur website to google search
SEO
i thought u need a sitemap
Runtime error: "what" created an infinite loop
sitemaps make the search better they aren't a necessity
oh
why when I react ONCE, nxt.on("connect", ...) runs like 4 times?
oh my
yo what happened to noImplicitAny
what the hell is this
please create a single reaction collector
also, WHERE is that code?
inside a command?
mhmm
I hope so
callbacks go brrrrr
oh god
why does "no results" have buttons tho?
description: "No tracks were found relating to your search query, submit request anyways?",
anyway, first of all try to reduce your collectors to a single collector, it might help with ur issue
this code is on spanish but i wanna know why all constants doesn't get executed....
client.on('message', async message => {
if (message.content = prefix + 'encuesta') {
if (message.author.bot) return;
let channel = message.channel;
let autor = message.author;
async function askQuestion(question, authorId) {
channel.send(question);
autor.id;
const filter = m => m.author.id === authorId
const collected = await channel.awaitMessages(filter, { max: 1 });
return collected.first().content;
}
const emoji1 = await askQuestion(`Muy bien ${autor.username}, ¿Cuál será el emoji de la opción 1?`);
const opcion1 = await askQuestion(`Ok, ya tengo el emoji, ahora, ¿cuál será el mensaje d ela opción 1?`);
const emoji2 = await askQuestion(`Ok, ahora, ¿cuál será el emoji de la opción2?`);
const opcion2 = await askQuestion(`Listo, ahora, ¿cuál será el mensaje de la opción 2?`);
const pregunta = await askQuestion(`Listo, y finalmente ¿cuál serál el mensaje?`);
let embed = new Discord.MessageEmbed()
.setAuthor('Nueva encuesta:')
.setDescription(pregunta)
.addField('Opción I', `${emoji1} ${opcion1}` )
.addField('Opción II', `${emoji2} ${opcion2}`)
.addField('Opción III', ':middle_finger: Me vale pipí')
.addField(':warning: Aviso :warning:', 'si ves algún error en este comando repórtalo a Barnie#7063')
.setColor("PURPLE")
.setTimestamp()
message.channel.send(embed)
.then(m => {
m.react(emoji1);
m.react(emoji2);
m.react("🖕");
});
}
});
you're not sending the embed
the only constant that get executed is emoji1
bruh
the embed isn't the problem
Anyone with an idea?
does ur log have any error?
nope
what is inside "askQuestion" method?
it's an function
it's inside the code i sent.
just check out the code
oh, function inside callback
ok, so why did u create an async function exactly?
like, you're already awaiting for the value inside it
i wanna make a poll command
ya
oh
so
it's not neccesary to make that function async
?
oh no
it's neccesary
there is an await inside the function
instead of .last() how can I use .get() to get ➡️
idk how to answer that barnie, the whole thing doesn't look right. I'll leave that to someone more experienced with node
tried that but it returned undefined, prob had a typo
ok...
you didn't pass authorId to the function
that's not the problem, the authorId is inside the function
i wanna know why all constants doesn't get executed
you didn't define it anywhere
autor.id; makes no sense
no it's not actually
autor
ye, see, undefined.
it's defined
show us where please
Clearly not
if you want you can use hastebin
oh right
Ah yes, I see that you're a lazy developer as well 'Pings the user when the reminder is set',
Copy pasted from another command?
client.on('message', async message => {
if (message.content === prefix + 'encuesta') {
if (message.author.bot) return;
let channel = message.channel;
let autor = message.author;
async function askQuestion(question, authorId) {
channel.send(question);
message.author.id;
const filter = m => m.author.id === authorId
const collected = await channel.awaitMessages(filter, { max: 1 });
return collected.first().content;
}
const emoji1 = await askQuestion(`Muy bien ${autor.username}, ¿Cuál será el emoji de la opción 1?`);
const opcion1 = await askQuestion(`Ok, ya tengo el emoji, ahora, ¿cuál será el mensaje d ela opción 1?`);
const emoji2 = await askQuestion(`Ok, ahora, ¿cuál será el emoji de la opción2?`);
const opcion2 = await askQuestion(`Listo, ahora, ¿cuál será el mensaje de la opción 2?`);
const pregunta = await askQuestion(`Listo, y finalmente ¿cuál serál el mensaje?`);
let embed = new Discord.MessageEmbed()
.setAuthor('Nueva encuesta:')
.setDescription(pregunta)
.addField('Opción I', `${emoji1} ${opcion1}` )
.addField('Opción II', `${emoji2} ${opcion2}`)
.addField('Opción III', ':middle_finger: Me vale pipí')
.addField(':warning: Aviso :warning:', 'si ves algún error en este comando repórtalo a Barnie#7063')
.setColor("PURPLE")
.setTimestamp()
message.channel.send(embed)
.then(m => {
m.react(emoji1);
m.react(emoji2);
m.react("🖕");
});
}
});
done?
TIAS
message.author.id; still doesn't make any sense
Haha yes 😂
i should declare the var inside or out of the function
?
I just noticed all the commands have the same description lol
Just change authorId to message.author.id?
oh right
You're not declaring anything there.
you're not declaring it actually, just calling it and doing nothing with the returned value
quite big brain
stopping to think, this is probably the issue
it'll never reach the next statement
because it'll never equal m.author.id === undefined
that is, which is what flaze originally said @lyric mountain
?
ik, not trying to steal his cookies
coding on mobile is a fucking curse
i have to type super slow else my code will fuck up with random shit
client.on('message', async message => {
if (message.content === prefix + 'encuesta') {
if (message.author.bot) return;
let channel = message.channel;
let autor = message.author;
async function askQuestion(question, authorId) {
channel.send(question);
const filter = m => m.author.id === message.author.id;
const collected = await channel.awaitMessages(filter, { max: 1 });
return collected.first().content;
}
const emoji1 = await askQuestion(`Muy bien ${autor.username}, ¿Cuál será el emoji de la opción 1?`);
const opcion1 = await askQuestion(`Ok, ya tengo el emoji, ahora, ¿cuál será el mensaje d ela opción 1?`);
const emoji2 = await askQuestion(`Ok, ahora, ¿cuál será el emoji de la opción2?`);
const opcion2 = await askQuestion(`Listo, ahora, ¿cuál será el mensaje de la opción 2?`);
const pregunta = await askQuestion(`Listo, y finalmente ¿cuál serál el mensaje?`);
let embed = new Discord.MessageEmbed()
.setAuthor('Nueva encuesta:')
.setDescription(pregunta)
.addField('Opción I', `${emoji1} ${opcion1}` )
.addField('Opción II', `${emoji2} ${opcion2}`)
.addField('Opción III', ':middle_finger: Me vale pipí')
.addField(':warning: Aviso :warning:', 'si ves algún error en este comando repórtalo a Barnie#7063')
.setColor("PURPLE")
.setTimestamp()
message.channel.send(embed)
.then(m => {
m.react(emoji1);
m.react(emoji2);
m.react("🖕");
});
}
});
now?
learn javascript P L E A S E
let's try
what would be the correct way of using .get() for an reaction on a message, both of these return undefined
msg.reactions.cache.get(":arrow_right:")
msg.reactions.cache.get("➡️")
wait
THX!
hello
hello
help
there you go
we cant help without a question
free hello for your bo
but like, you still need a lot of cleaning there
oh my
bruh
token
@cinder iron token leak yaay
E X P O S E D . E X E
delete message
@drowsy crag delete token plox
bro is this guy even listening
done
Anyone?
I am a bit confused with a partial. So I have the partials USER, MESSAGE, GUILD_MEMBER and REACTION enabled. (And i have the intents enabled etc.)
However, if a guildMember is not in the cache, the guildMemberUpdate event does NOT fire, even with the partials. Am i missing something?
nvm karen, issue solved
nope
poggers free token
my bad, i meant to write partials
@gloomy python what is generateEmbed
@cinder iron send ur code again, but remove the token from it before posting
btw, regen it
NOW
someone might have grabbed it already
uhm
dw no one got it
Please reset your token to stay safe
i already regened it @lyric mountain ;p
But my point is, I have the partial enabled, yet the event is not firing with an uncached member and I can't understand why
Do you actually think people understand
ok
wait Woo did you force regen it?
yeah
nah, github
Woo is our saviour
lul wtf
🙏
TIL github triggers discord instantly
it does
So basically on searching for a word, I get a list.
So, generateEmbed will generate an embed for the given index of the list and index gets updated based on what you react.
When a kid tells you that they hacked into your bot by finding your token on github, i am speechless
thats what I did
smh
checked some whitenames gh repo releases
and there was config.json
"Haha you got hacked cuz Im big hackerz git gud noob Im a hacker"
stored in plaintext
ok
fuck wrong emote, greennames dont deserve star
we just joking, calm down
lmao i just came back and this looks like a warzone of code
that's what 99% big hackerz do
did you know bot reviewers have less perms than bot devs 
i lost my video stream privileges when I removed my bot
ah, yes, public employees
true
oo
@flat pelican come here cutie
But it's a bot not a selfbot...
the fuck
bruh which lakuna is it
this is why i hate bots with the same username as their devs
Look at the reactions list and you will see it have the bot badge
o
calling a karen a cutie :insert weird champ here:

Btw, after a week I'm finished developing the core features of my bot and am now ready to submit it to the queue
also @marco_rennmaus | Rennmoose2#7328 special thanks for approving my first bot
Is it just me or are pings and mentions and emotes having a cancer
ok
@slender thistle discord being discord moment pog
import discord
from discord.ext import commands
from dotenv import load_dotenv
load_dotenv()
client = discord.Client()
cp = '-'
client = commands.Bot(command_prefix = cp)
@client.event
async def on_ready():
print('We have logged in as {0.user}'.format(client))
@client.command()
async def hello(ctx, message):
print('Test sucess')
await ctx.channel.send('Hello' + ctx.author.name + '! Your message was ' + message)
@client.event
async def on_message(message):
if message.author == client.user:
return
if message.content.startswith('$hello'):
await message.channel.send('Hello!')
client.run(TOKEN)
anyways how can u make it so it say something other than hello
hopefully i didnt leak my token
Change hello to something else
yes i did
🤯
tho it says error
do you know basic python
well
or are you doing this the first time in your life
well
rhetorical
yes
well
dig up some water from the well and throw it at this bitch
so, whats going on again?
yea
i am on another lsd trip, except this time there is no lsd only that-fucking-feeling-of-coding-on-mobile
came here to help some people with dev but it seems its only py nowadays
probably because "python looks better for beginners"
coding on mobile has to be some of the worst nightmares of any decent programmer
lmao agreed
agreed
It is a hell to do anything in it
py is also dope for file IO
i tried to make a bot with python and after 1 hour managed to make a proper command handling system
It's very easy if you're making a simple bot.
only thing i value py for is <undefined> // i dont value py
doesnt py have cogs by default though?
yes
simple bot like dad bot
If you value performance you aren't going to use Python or JavaScript.
I must have written 100 lines of code for my fucking help command
yes, if you dont use scratch or haskell, you doing it wrong
I think the issue is that python is overused for the wrong niche
like, IO/AI/automation? sure, go on
py seems like the js of community. Got a problem? theres already a solution type of deal, do it all by stackoverflow'ing
bruh i dont want to but i have to accept this shit
huh
Yeah Python's not the best language for AI/IO/machine learning/etc., but it has the most support for it, so people just end up using it regardless
@remote sluice
Py seems meh at everything , at first glance, just like js, there are libs and shit pre-done for everyone, this is why i think it may be more "noobie friendly"
issue has already been solved...again
Karen has joined the chat
r u n
seems MEH at everything, but CAN do almost everything
turns out it was a bot double-reacting to any checkmark reaction
python is basically js with extra steps
and indent hell
but bots aren't supposed to work outside testing channels tho
how is indent supposed to be easier than brakcets?
A lot of people label languages unfairly to dismiss it, like that one person who says C/C++/Rust sucks because they couldn't understand it after 30 seconds
Shivaco is gonna be so angry when he sees this chat
since always
there's no perm to prevent reacting on a reaction
are you the only unbiased guy i have seen in a server with js and py devs
if they could create reactions i should be able to do this though
No I'm not.
n.reload
yeah, cant react here
i thought there was a permission to prevent that though
you expected too much from discord
fair argument
...why should there be?
why wouldnt there be? a bot not being able to do anything in a channel but still react?:
seems a bit off, breaks the sense of "containment"
lmao im checking the python docs
@opal plank we're in top.gg and we see the point but no other server sees the point
cant stop reading "whet your appetite"
also fair point
and we're removing all bots anyways
imagine a programmer literally whetting their appetite by looking at a new programming language
ngl that has been said more than a month ago
points baby
wetting
is there any reason to wait?
how is that related?
luca tracks them all
but... why?
if the bot ain't here they can't know the status
I suggested for them to implement the status tracking in @pliant gorge
since 99% legit bots also have DSL for support server
why not move all bots into another test server and have Luca there then? just like the test servers?
mine does
they can't, max 50 bots per server
which list of bot ideas should i make:
- a bot for everything, like moderation economy suggestions and stuff like that
- advanced suggestion bot
- advanced member count bot
- advanced global economy bot
- guess the number bot
- other
not like luca has a limit of 100 guilds like we do
do you know how many servers there would be?
with so many bots making servers would get old fast I'm sure
How do some bots get the admin permission AND other permissions on their invite page
a bunch, still wouldnt be an issue to have a bot in 100 servers
check 'em all
probably editing the permissions once the bot is already submitted
not like anyone checks em after you verify either way
No I meant the admin permission disables other permissions being shown on the bot invite page
yea
thats kinda impossible
But mee6 has an option for admin AND the other perms it needs
cant see those big bots giving 2 f's about invites or not since they pay to be advertised
prob get priviledged treatment
yeah, see?
check rythm, pokecord, and those other big bots
i assume its all the same crap
but how are they doing this?
wdym?
pokecord being dead
time to read api docs
bruh thats just a flag
By selecting more than admin perms???????
number 8 iirc
pokecord already became petrol
yeah lmao
????????????????????????????????????????????

it gives permission number 8 regardless of anything else iirc
admin is 8 and you can add more to 8
yea
Does anyone know how can I get a user object from Discord given the user ID with Discord.js?
I need to retrieve the avatar URL of someone who is not the message author and I don't know how to do it
cache or fetch
discord's oauth perm generator and discordapi.com/permissions.html both have either admin and no other perms OR no admin but other perms
<client>.users.fetch
^^
so whatever i select after admin it will always say 8
manually putting the flag???
ty
i mean
I'll try it out
dont know how to manually do
who uses their shitty oauth though
you can calculate the permissions by hand
you just calculator it
A small calculator that generates Discord OAuth invite links
i do my things by hand
bruh this one also disables everything if admin is selected
wat
IT DOESNT DO THE SHIT THE NORMAL OAUTH GENERATOR DOES
wdym how, how the fuck have you created ur invite for your bot if you dont know about permission?
1916267615
here
try this perm flag
ooo
that bot thing is pretty cool
the way discord deals with that is with bitfield
funny enough, i made that by hand cuz i didnt realise d.js had one


I did it!
epic
games
.com
/store/en-US/free-games

or just follow r/freegames
I want to make a reminder, should I use date.now() or are there helpful npm packages ?
which bot idea should i make from the list:
- a bot for everything, like moderation economy suggestions and stuff like that
- advanced suggestion bot
- advanced member count bot
- advanced global economy bot
- guess the number bot
- other
other
- a bot for everything, like moderation economy suggestions and stuff like that
never this
Guys whats the best way in python to shut down the bot i want bot to do some executions on ready then close itself
exit
Is it like bot.exit() like ?
make a shutdown method, then at the end of it use exit
it'll shutdown the proccess
Or you can disconnect the client
or plug off ur pc 🤣
All of those categories are well saturated. Try coming up with something more unique -- a bot tied to a specific subject.
Yardımcı olucak varmı
yeah i have an economy bot,
i dont know what else to do tho
its in 85 servers
Are you adding on to the bot
You need to add something your users (targeted audience) cares about. General/multi-purpose bots are everywhere, so if your bot is about economy, does it need a suggestions command, or will it be tied to economy somehow?
why ppl just make same bots, make something unique xD
like
if you're making an economy bot, make it unique
have it themed around something unusual
yes not multi porpuse
yea
whats that xD?
get dunked on

xD'
quote of the century
this emojis look like El Chapo
Does any of you speak Turkish?
was not willed
just a word "sandale"
that means chair xD
I understand, thank you very much
does somebody has a simple auth2 express discord code
nothing works
pls ping me
You can use passport-discord
Show your code and let's see what oyu did
can i dm u
No, you can ask whatever question you have here.
You wanted an example, it's an example 😛
It even has all the comments to understand it.
i will ask tommorow
dude they're not gonna spoon feed you the code
I literally did
i am having problem with my code
if not working sending the errors would help us narrow down why
remove the headers, footers, all that. You're not doing a full webpage, you're just doing a description. It should be something like ```
<style>
p {
margin-left: 10px;
}
</style>
<p>This is your bot description</p>
no <html>, <head>, etc etc
momentjs 
(or try googling the error)
All the CSS Selectors are listed in #site-status
oh thanks
but now
?
Well you still have work to do to make it right, then
remember you are styling both your own content and the entire site by adding CSS, so, make sure you're not actually breaking anything.
help
oh
its turkish
They should make a Black List system where any one can ban people who are on ti
guys how do I write a code that can detect a role from a mentioned member inside a server. I try to write a mute role and detect if the user already has muted role
use the member.roles property
member.roles.cache.find?
no problem
How can i get all the text channels ids cannot figure out for like 1 hr
i even forgot how to get all channel ids was using this discord.utils.get(client.get_all_channels()) but now it returns none
hello Erwin
hello million
nah this looks like py
How do I do this by inviting my bot to redirect it to my support server?
Like an automated message sent to a specific channel of the server once the bot is added?
all channel ids? [i.id for i in <Bot>.get_all_channels()] 
Why do you want that
I have no clue either
me?
Yes
to iterate inside the chat logs of all text channels
i couldn't think of any better solution
I smell some sort of api ab
se
Why do you want the chat logs
no
What you're asking for is very intensive
me?
No
oh ok



