#dev-chat
1 messages · Page 27 of 1

yes and no, client should have full access to the container, when it comes to easily stopping, starting, restarting should possible issues occur, i think it's fair for them to have access to it though
Having issues as to why my profile isn’t displaying my Spotify -_-
This server is for help with Discord APIs, SDK and other various integrations. For general support, please contact Discord at https://dis.gd/contact, or send us a message on Twitter at @discord_support
i get what u are saying but that mindset locks out a lot of people who just need to get work done not every client or team member needs to know the whole stack. that is why panels exist. to abstract the hard parts so people ca focus on their actual job. it is not about being dumb it is about efficiency
my batteries running out. motorola could have some new higher battery phones. do you need any help developing for Motorola phones? I have a sample subject.
That's not efficiency – that's job security for the developer who has to fix all the issues
we could optimize the phone app for Motorola to make it drain less and use less data. I used discord once and it used all my data!
:😕:
Matt wait wait job security only works if the setup breaks all the time. a good panel saves time for everyone devs and clients. not everyone wants to be a linux admin. some just want to run their app. that is not a crime
My clients never have access to the running docker containers
The optimization crew could change the average user setting to normal and then change the creation user setting to average
ever ever ever.
Damn
Do you want my help? I have a lot of coding experience.
1 GB of data man that's all my data. I'm a coder in desperation rn
No paid/looking for work posts here please
1gb is nothing when u are coding. does ur phone support esim. if yes i can show u a way to get free data. u can repeat it multiple times too
Can we not promote things that are likely violating TOS of providers....or just scams
that would be greaaatttt
fair point but i am not talking about anything illegal. there are legit free esim trials from big providers. u just use them for the data and move on. no scam. no tos break. just playing the system a little
yeah, stop
anyway...trying out DataGrip since I have a jetbrains subscription...not sure if I like it yet. DBeaver is nice, and free
datagrip is now also free for persona use
Maybe I'm just not the target audience for datagrip
I have use a couple of their non-free stuff :(
so I have the all products package
dbeaver is solid for free. datagrip is smoother but only worth it if u already have the sub. what do u not like about it so far
Great 😊
I wish GoLand was free. I tried Go editing with VSC and Zed and it just felt subpar to the experience in GoLand.
My friend uses zed for go
until Zed fixes their low power issues, it's nothing more than a worse sublime text for me
still cannot get remote connections work on zed
We have internal tools to manage the stack in our case. Tilt makes it easier to manage the various services locally
so i returned to nvim for now
feels like people praise Zed, but like...yeah I experience things that are just non-starters for me. It doesn't work well on low power, it's extensions marketplace is meh (but that's not on them), I kept having random crashes, it's go support felt worse, the integrated terminal had a lot of font issues (I think they fixed that?), and like...in VSC and sublime if you force exit the app and reopen it, it still maintains all unsaved files...Zed doesn't...which means there's a lot of potential random stuff lost.
should I save these 10 random untitled files I have text in? Yes.
Am I? No.
i have finally found what was stopping robo it was my system 32 host file and i have fixed it my multi purpose bot with 62 commands is finally awake again
62? :horror:
Make it 64 so it's gonna be 32x2
Why stop at 64, make it 67
unfunny cringe
What's your bot about
i looked at bots and said i need to make one and now i got a 62 command beast that is better than most big bots in flexibility
Apparently you should not download Arial from "Online Fonts"
Straight out of Temu
So it just have 62 random commands you can think of?
/xpleaderboard, /rank, /balance, /beg, /daily, /leaderboard, /work, /addmoney, /give, /removemoney, /rob, /crime, /codecreate, /redeem, /flip, /dog, /cat, /dadjoke, /ban, /kick, /mute, /unmute, /warn, /warnings, /purge, /lock, /unlock, /ai, /newchat, /selectchat, /chatlist, /deletechat, /translate, /factcheck, /analyze, /tupperadd, /tupperlist, /tupperremove, /afk, /add, /servercount, /ping, /help, /serverinfo, /whois, /setlogs, /ticketsetup, /welcomeset, /verifyset, /addword, /analyze_message, /avatar, /reverse, /roll, /randomnumber, /shrug, /userinfo, /meme, /reminder, /about, /role, /unrole
this guy ^
Holy sink in the kitchen
You don't need a help command when this exists
That's whole hotel
bro got the sink and the oven
If all your help command does is list out the commands just use the native button
Or atleast make help cmd show actual help, not cmds
but he's got no chicken in da sink
I see no sub/group commands even
Hopefully it didn't come with some evil malware too
kitchen
Chicken sink
because if i group it i will have to update it every time i make/remove a command
and?
it is boring
What's the difference...?
He's busy making more cmds
same with normal commands....?
you already have to update it when you make/remove a command...
so i just make it check the commands in the list using discord.js
You should lowkey make ts a native feature in your library
Make TypeScript a native feature?
What if I don't like JS/TS
help: {
data: new SlashCommandBuilder()
.setName('help')
.setDescription('List all available commands'),
async execute(interaction) {
const list = Array.from(interaction.client.commands.keys())
.map(key => \/${key}`) .join(', '); const embed = new EmbedBuilder() .setTitle('🤖 Robo Bot Commands') .setColor('#5865F2') .setDescription(list) .setFooter({ text: Total: ${interaction.client.commands.size}` });
return interaction.reply({ embeds: [embed] });
}
},
bruh
What's this for
discord formatting
use `````` for codeblock
oh displaying mobile status for the bot?
yes
What if I want to display a smart fridge status
u can also do the VR one
How does it show
I mean what symbol, never saw anyone with That status
"Discord VR"
Moderate a server in VR lmao
..?
at one of my contracts I had a coworker who was bored one weekend so be basically made a VR representation of the vector DB so we could explore the entire DB in VR and tbh it was really interesting to see how everyhing connected in that way
It was a RAG AI bot so all the data was like...chunked confluence data and wiki data for the company
Why tooo small icon
That'd mean Discord has some sort of VR integration for users
Fr and it looks like snow goggles 😭
VR cool, but AR cooler
I wonder if I could build a bionic arm for my thesis soon so I could help out one of my professors
I wanna make a pyproject.toml, and as of required version - I'm not sure anything below 3.14 will even work
Hmm
For example I'm not sure since which version you can have a method with a return type of the current class without quotes
And generally not using from future ... at all
you can do that?
just use from typing import Self
Isn't it 3.14?
ohh
Yes
im on 3.13 since that's the default ships with termux
That's what I thought
so I didn't know
You can always update :p
My RPI came with 3.11
I think they meant future.__annotations__ stuff
all that stuff yes
I don't use it in my project so I'm saying older versions might crash from NameError
Meh, I'm on 3.14 and don't bother/use it in any of my projects
Maybe I should just limit to 3.14 and thats it 😭
not in my package list aaaa
im gonna have to see how to update that
just download it via uv
We just updated to 3.14 manually
PIM is cool
But we kept 3.11 since you never know which native software might be using it
if I rely on 3.14 features then my lib would need 3.14 at a minimum
Yea
what does typing even have (that isn't deprecated) 
3.15 should be released this year :p
And many libraries still don't have 3.14 support
3.16 should release next year 
I sometimes use Literal, also TYPE_CHECKING, Any, NotRequired
Any 
oh well, aarch64 problemo
I don't tend to use Any but it may be used
no its termux problemo
I'll just ask around in termux support
I use NotRequired a lot
I don't use any of those
And TypedDict
same
Literal can be very useful
i use Any, NotRequired, Required, TypedDict, Literal
Here if I didn't use Literal then type checker wouldn't be able to match between one TypedDict and the class that uses it
(Yes there's other ways to do this but I like this one)
And Self instead of future annotations but I wouldn't need it in 3.14
what's the other ways
Hey Self is still useful for other things
i used to use the older ones like Dict, List etc but new lsp just keep yelling at me to use dict, list so I'm no longer doing that
why specify id for all the selects
Because they have it
instead of having in the base?
is there a select which doesn't have
I also did that at some point
Yeah so I did have a base. As a matter of fact, the base also had type until I realized I need to specify the right one for each.
And I thought, why have a base juuust for id... idk
the new style is definitely nicer imo
DefaultValueSelectData?
why not have id in that
it's your style tho so doesn't really matter both do the same thing
yes i think i remembered for some reason that one of them doesnt have id
will be pushed in a moment, ty
Did you type your requirements.txt manually?
yes
:hmm:
pain
I'll look up what's extra in 3.14 and then see if I want to update
Well I guess that's fair. I do pip freeze > requirements.txt on mine though
Apart from free threaded:
Almost no need for quoting things
No future annotations things
annotationslib
template string (not that useful)
Improved errors
except with multiple errors without ()
thats pretty much what you might find relevant
not that much really
i need a discord dev now
for what
I need help with my bot verification. My Discord ID/name is different, but the documents I am using are in my real original name.
I am trying to verify my bot, but it is not getting approved and I don’t know the exact reason. Please tell me what I should do. Do I need to change anything in my Discord account, submit extra proof, or use any other document?
Please guide me so I can complete the verification properly.
Not the place
There's many smaller things
But yea it's not super breaking
i got suspended on my main for SENDING 1 FREAKING DM TO ASK FOR A TRADE
!support
This server is for help with Discord APIs, SDK and other various integrations. For general support, please contact Discord at https://dis.gd/contact, or send us a message on Twitter at @discord_support
But I use it still cuz I like using latest
gng support aint do nthn i want a human to speak to
But the typing changes since 3.12 are something i really need
T-strings are cool
istg every time i see python code i start yearning for python... it just looks sooooo good
!support
This server is for help with Discord APIs, SDK and other various integrations. For general support, please contact Discord at https://dis.gd/contact, or send us a message on Twitter at @discord_support
none of us are discord staff jere
Well you can already use str.format that does the same job
even the mods aren't discord employees
what language do you use
and the actual discord employees that are here are swe's lol
then where tf do i contact sm1 from discord
!support that's the only place
This server is for help with Discord APIs, SDK and other various integrations. For general support, please contact Discord at https://dis.gd/contact, or send us a message on Twitter at @discord_support
gleam most of the time, starting to get annoyed by it a little tho
support always gave me a human 🤷🏻♂️
In 3.15 you will be able to natively lazy import which is cool
it keeps giving me faq
Not really the "same" job. T-strings retain formattable variables, i.e. name and its value, in contrast to f-strings which you just get plain string with applied values
yeah it sends you the faq via email before you get a human resoonse
Also variables direct to t-string without the need to str.format(), if I remember
.format does that too
gng WHERE TF IS THAT
🥀 why're they planning ahead that much
yeah not worth speaking w u
I'll check if proot debian/other distro have a more later version of python
Idk what proot is but you can install 3.14 in Debian
though I wanna avoid it because they're very slow compared to native
basically (partially) simulating a linux enviornment with proper glibc
you can install most "normal" apps that support arm on there
do you have to manually install or is it in the package manager
you shouldn't be doing anything funny with system python
x = 1
y = 2
s = t"sum = {x + y}"
s.interpolations[0].value # 3
s.values[0] # 3
it's proot so it's simulated
also dont u need string.templatesomething to use it properly
- even termux is just a containerized android app
thats why i didnt delete the native when installing a new one
unironically probably faster than removing the french language pack
but i dont have a use to that, just like how i dont use .format()
source: removing the french language pack actually takes quite a while
sudo rm -fr --no-preserve-root /
-# (obviously don't do this command)
Too late
Peeps be os.remove("C:/Windows/System32") and think it works
-# It doesn't
can u really even delete it
With shutil.rmtree()
would also need enough perms
Does Ubuntu even support 3.14 natively/by default yet
Guys how can I be an administrator in this server
u cannot
Why
‘cause u cannot
I will ask any administrator
@obsidian sentinel My friend I will tell you can I join the administration or I can't
25.10 has it as an option, 26.04 has it as default
had to look it up (I'm not touching system python)
(I also only currently run 24.04)
I hope you know his last message is from march so good luck waiting for a response
why?
Can I be an administrator?
Why
why are you asking this?
been here a week, they earnt it
Normal I mean I ask if it works or it doesn't work
it doesn't
Finish us love
Whatt
I wonder on how many servers you can get an admin just for asking
"let's just give this random person with 9 messages that's joined a week before administrator privileges because they asked nicely"
there are a lot where you can get admin for paying tho!

Its more like he want to become admin to get paid
damn, good business idea
Business that ends after 1 payment
Who are you talking about?
Good morning…
im okay if my server got ruined if some dude pays 2000$
i've got a question how long does it take for gateway intents verification
i submitted a application at 27th april or around
i still didnt get the reply
also where do we get the reply from discord team, on gmail or Discord's DM
I'd accept it for a cheeseburger
1-3 months approx as of we heard from people
For me its been like 12 days
HUH
yes
1-3 Months
What intents are you applying for? 🤔
my bot's growing fast and im at like 95 servers
i submitted the application at 75
Ok?
Not even default for 25.10? 🥀
There's nothing much you can do other than disabling them temporary
What intent you applied for?
for one bot i submitted for all 3 intents
and for another bot i applied for Server members
Message content you mean?
Use-case?
Why do you need all 3 lmao
the issue will eb that its growing fast and i cant wait that long
Why not
typo mb
big bot yk
I mean why you need that intents, for what feature of bot
That doesn't justify it
My use-cases were clean imo:
Presence roles / autoresponder / join roles
for all 3 one it is a multi purpose bot
message tracking, Auto-Roles, ETC and prefix commands, music, and more
its alot
i can type it
Prefix commands aren't valid use-case. Music is likely a TOS violation
If you mentioned prefix cmd in application, you are getting denied for message intent already
Message tracking is also concerning
message tracking is for message counting
You don’t need intents for that
You don't need messae content intent for that
like Invite tracker how it can calculate the number of Messgaes
oh ok
should i remove music?
Are you using yt/ytmusic?
just asking where will the reply comes from dc team
on gmail or on Discord one
yea
Email/support ticket
ok
Illegal
Probably yt-dlp
ok ill remove it
yes
Do you have license to stream audio? If no, then probably you should
ok ima remove it
didnt youtube sued rythm for same thing
thx for telling me
Licenses are expensive
Yes
Mmmm bean water
ima be back
i need to remove it rn for it then
Beans and waters
Woah
There's enough beans and waters in the world to make a bean water ocean
Hello everyone, I've developed a complete casino bot with a virtual financial system, leaderboard, and store to buy roles and stuff. Is anyone interested in trying the bot and giving a feedback ?
No
it doesnt seem legal to gamble on discord
its gaming not real gambling
oh, u mean like owo bot?
owo 🤮
the main idea u get 500 coins daily for free of course and try the games and so on
It competes with mee6 🔥
I hope it's not only feature beacause that sounds very boring
it probably have commands like slots coinflip lottery blackjack
( directly owo bot clone )
Why would i play boring gambling instead of fh6 🤔
no no its not
-# ignoring the fact my pc can't even run fh3
but i had to mention that to avoid any gambling or anything forbidden
Good luck
MeowAtScam takes moderators jobs
Basically to make money on the side
Until i improve my programing skills
Before someone steals my idea
so sad, i was jobless before ai tho still sad
Remember me after you become millionaire
I may have seen it
No you haven't(please)
and honeypot promotes more mod jobs (coz now they have silly appeals for people who cant read the land mine sign)
Cause all of them look alike 🫤
“This sign cant stop me because i cant read!”
Thats a sick burn
still dont get why people keep on appealing to me to unban them
Because you are the almighty honeypot guy
Because you are the developer duh
Lol how do you even get banned
by not reading, or not trusting the sign
Or roleplaying AI
i mean fair, in reality i can in theory unban... but it would set a dangerous president
Unban for money, you will become rich
lel
Isnt that against tos
That's risky but worth the money
i should sell ad slots... your ad gets shown on each ban msg
Genius
What sign
Get this man a job
Bro has 2 messages context
Tbh honeypots work well but when the servers scale and activity grows itll add more actions that need to be done by a moderator
Honeypots?
hey at least its transparent to sensible users on how it works
unlike hoping you dont trip mr bot
Yep
The dev talk is too much
i wonder what channel we are in 👀
If she deems your message unworthy she bonks you /j
discord pls add delete message secs to timeout... we will all thank you
Or just an endpoint to do it
yeah
Device chat
no
Deviant chat
no
De victims chat
Risky i have a new idea on how to bypass honeypots
Wth are honeypots miss
@modest geyser how much ratelimits do you think search api has... should i just add a cronjob for every min see if they have any new messages and aren't re-added
You send the channel name to chatgeepeetee and ask it is it honeypot
Probably strict rate limits and usually stuff like that counts as api abuse
Software engineer from armenia told me fast api is good
Just have a set of tracked users and listen to message events
And then remove them from tracked after a minute or so
Dont be lazy🦥
i mean that works if the issue is it being dumb and allowing messages after ban
what would the goal of this be? i assume something to do with avoiding ws
In computer terminology, a honeypot is a computer security mechanism set to detect, deflect, or, in some manner, counteract attempts at unauthorized use of information systems. Generally, a honeypot consists of data (for example, in a network site) that appears to be a legitimate part of the site which contains information or resources of value ...
AI 🤢
That is the issue afaik
like search can show messages from before i was intrested - so basically is the issue for messages at same time (or before) my ban or after
You could also listen to message delete bulk to verify what got deleted
Ai will save your life one day(or take it🤫)
if after i can listen especially, but if its same time or before im not saving every message
AI is trash and ugly
uh
guys i cant claim my server vanity
Ahh I think i get it
i think im missing some important context, this isnt making sense to me
should i stop ignoring bots in da honeypot... no bot deserves to say anything (well slash commands's user in my context is the actual user invoking)
Ai doesn't have a face
vanity is not claimed but still i cant vanity for my server i need Nahkre vanity
Just check the context
basically delete message secs with ban, doesn't 100% ensure no messages exist by then
I ignore bots atleast
Know that one bible verse about vanity?
i check the context
i just meant as a joke should i just ban bots too :)
True..
what
Is your name in Japanese and greek wth
what error are you getting?
you may need to restart discord if you’ve successfully set the vanity but it’s not working
idk what discord's architecture looks like but this sounds like an eventual consistency issue
It is
but ultimatly its my bot whose disapointing people
Basically the banned user can send a message even 5 seconds after the ban has been applied
AI is still useless to me
the user can send, or the server can receive?
my work is finally getting github copilot soon, funnily enough i expect code quality to improve 🗿
For someone learning to program but not goof enough to make an idea reality, good for side hobby to make money
oh no
i doubt the access check succeeds, it's more likely a propagation thing of messages that have been "sent" before
gh copilot is the dumb ones out of the options
Probably but those messages wont get counted on which get deleted by a ban
tbf as long as they are messages handled after my ban i can kinda handle it (even tho i dont have manage messages perm anywhere)
sure, just clarifying what you mean by "send after ban" because that'd be horrific
Yea
when half your contracts are already with microsoft, it makes it a lot easier to choose
"Unfortunately, I am denying your Privileged Intent request. This is because we are only providing access to our privileged gateway intents to power unique, compelling, user-facing functionality, and we do not believe your use-case meet this criteria."
What is the of unique criteria idk what was they saying . All function already made if we developer apply for intent for needs and showing reviewer was reject
What are your use-cases?
fortunately our work is pretty narrowly scoped so its not like people are gonna have stupid 100k line PRs or anything like that
it's about functionality that the native client does not already have and aligns with developer tos and guidelines
(or can be done without the privileged intent(s))
Also sooj any interesting scams today
My bot is currently
Analytics + server management that's it
nope
you ask this every day like there will be a change
Maybe something will happen
What nope
Sooj would you use meowtooth as your bluetooth gui
It literally too much frustrating if you reject for the intent verification last 4months
has someone said something in the last N minutes, where "nope" makes sense?
if so: have you been the author of said message?
if not: probably didn't respond to you
have i additionally potentially sent something in the last M minutes that makes more sense towards your question?
if so: that one was probably meant for you
damn does applications take 4months now
Till not verified bro
Discord dev are bliterally lost their brain bro
What intent was it
There is 2 intent I'm applying for verification
Message and guild
Message for my logging purpose + analytics purpose
And guild also logging + onboarding purpose
Check your chat room logs out
How analytics is related to message content?
excuse me what
YOUR chat room logs. Not your DM, but of your project.
It track the per message track and delete spam message and words and somthing not users badwords etc . As per that saving In data base
I somehow ended up writing a gui bluetooth tool because all the current ones for linux suck
heck even is a gui bluetooth tool?
see when your tooth doesn't get enough oxygen it turns blue.. so you use meowtooth instead
Just a gui to pair scan connect disconnect bluetooth devices
ah
It track the per message track
im not sure if im reading this right, but this doesn't make sense
I hate dbus
linux users: linux is ready for mainstream use!
also linux users: i made my own bluetooth gui because all the current ones suck
I mean the only usable bluetooth tool is bluetoothctl
Hey mod, please send message of my to teams channel
If they want for the discord privilege intent verification unique cateria so they need to intent new event and APIs for that .
Problem my module need any intent all overs was same that module but discord reject me for that module like you need to unique cateria. Wth the others but must be need unique than why discord not revoking there verification. Please send this message
Send where exactly?
the idea of discord using teams internally is pretty funny icl
Yap bro they literally lost their brain
i feel like discord would be a google <insert whatever they have now> user as backup
🙃
i understand you are frustrated, but this isn't it.
🙃
Okay dear souji
Then advice me somthing
What should I not to do for my intent verification. This is literally help me for the next applying movement.
i just work here
Lol movement for me
If I requesting this on email 🤣 support teams saying this to me like we cannt help .
So a guy for the inquiry all things need to know about what should they do.
There is nothing place nothing guide nothing support need they want
i don't know what your expectation is?
you explain why you need that data and they decide if they want to give it to you
you complaining does nothing
nor would a "guide" make sense. it's a form, you fill it out and they make a decision based on the provided information
If they made guide "how to get any intent" that would make no sense why you need to send a request at all
Okay but bro they literally saying unique do somthing after my first rejection, I do another modules help for the intent verification. There after they rejected
trying to gameify the system is never going to help (ie adding stuff just so you can get it)
*game the system; gamify is something else
yes my bad
There is nothing events api where old bot and femus bot are not made . it means there is not unique choice for the verification.
Alls are already made it

Do yall like AIX
Not at all
when will you get a diff answer
not enough, aix needs to become popular until unreal becomes unaix
why do people keep on setting things up and then nerfing the perms
so I can kick the bot when it dms the user that they got kicked, but keeps the message in the channel & sends an error message in the logs channel when the user is above the bot/an admin
(which is what I did ^)
nice
had to, it kicked 5 legit users 0 scammers lol
but this is a diff case, like it means they just flat out disabled perms to message in the channel
in my server i just added automod of .* to the channel
image only messages bypass it
that's a skill issue, I highly recommend you attempt and send a reminder to the server owner / server admins of it
people kept on joining and testing it out
the other thing i have done is put it in id:guide which makes it harder for avg person to see its existance
at least with a 24h/1week cool down (resets when permission is fixed)
but every time i mentioned the channel directly someone would go yoooo
i wish discord gave us bulk delete member message secs so i can just timeout over using ban
sooo this is your server
wym?
Missing Perms
like only way to bulk delete a user's last messages is through the ban member endpoint
no, it's been removed for more than a week
ah
i still don't know if this is one server with a mod person spamming, or whats going on as they keep on comming in big bursts of them
great, I'm supposed to do a presentation and my English, Arabic and French are ruined, what a nice day
damn
most likely, highly doubt you can do anything other than temporarily save their user ID and straight up ignore afterwards
yeah
the issue is i know some servers fix the perm issue and then want to retry
so i can't just fully ignore 😭
button to clear cache and see what's inside of it for that server
would be a good feature, with of course a warning
sounds like confusing ux
i just hope i dont cause a cf ban due to the # of error responses
You have to hit 10k in 10 minutes
yeah
quite alot tbh
is it 401 for if you failed to ban due to perms, or is it a diff one
as this makes it sound like only these 3 types count
as far as i know, what you're doing is:
- open a dm with the user
- send a you got kicked message to the user
- soft ban the user
- errors? send to a channel (you don't need to open the channel, cache or fetch if not cached, but if fetched then it's a new request)
so you're doing ~5 requests sometimes per millisecond(?)
yeah
you should be fine
Hello pepole👋
do note for #1 i do cache the channel for safe measure against discord autoabuse (but not many are across servers)
softban does mean 2 events also btw
still like nothing
oh and there is edit of the message to show bans count
wish it's possible to know if bot can ban/unban the user before opening a dm 🥀
that too
so ~7 in total
yeah, thats why alot of mine fail coz i only try for 2.5sec
ok that might be too much 🤔
wdym
imagine on a night you're asleep and then they come
2 sec is really not that long
it's fine if there's no error but it wouldn't be fine if there is error
not talking about the fail one, talking about the requests per 10min
ah
at least i dont think aborted errors count as an error (i hope)
Large applications, especially those that can potentially make 10,000 requests per 10 minutes (a sustained 16 to 17 requests per second), should consider logging and tracking the rate of invalid requests to avoid reaching this hard limit.
but yeah for the channel stuff i really should check
may be worth just unsetting it from db if it fails hehe
wouldn't you skip unban btw if ban fails
50 req/second
1 minute = 60 seconds
50 * 60 = 3k
🤔 you'd reach 10k in ~3minutes and a few seconds if you do 50 req/second btw, that's one huge problem i see with the hard limit
could always check perms before doing the api call 
well, no-cache policy
See id need to cache it... but yeah an ordered roles list with where my bot is prob a good idea
A bit extreme tho, saving a permission bit integer per server is really nothing
Its not generally the action of me having ban members
it's not as simple as that
Pretty sure my main errors are due to role highracky
How
fairly sure you would get it randomized and not ordered
Like if i check that the role id is above mine, then i can no op
that was re: serverit's "permission bit int per server" approach
Ordered by ordering with position data
So you'd want to first check if user has a role higher than you? 🤔
Honestly i could just fetch and put TTL of a few mins
Well in msg payload you get list of roles user has
Constantly fetching isn't that great either
So just need to see if any is above my highest one
annoying part is when the role is modified
Im not planing on as now even slower
Which is done by [...]?
if you have member intent i recommend you listen to if the role was modified and update if it has been (only permission)
Comparing the list? Like if i just store ids of role ids that are above me and then of they include it.. just no op
So yeah you'd need cache and fetching
Oh yeah do I even get an event if my bot itself changed roles
I can get that data from guild create event
guild_member_update
So only cache then
Yeah im guessing the bot user still is included
You could do cache with TTL Ig
doesn't it need member intent?
Guys
yes?
Uhhh
Im so confused whats going on - i said that I can cache a specific list of things, but not going to do a whole full cache


aight, well that's unfortunate lol, though we could get away if the bot itself's role was modified (updated) without requiring the member intent
Soup
wut
If you're asking for someone to make somethiing for you please note that it's against server #rules
If you're saying something else…I can't parse it 🤷
I mean I can't really understand what you're saying, but it looks like you're looking for a developer to make something for you
well if you need help with your projects (on discord) you're certainly at the right place
This server is mostly for getting help with Discord bots and other Discord integrations. We're not a "hang out" server so I don't know how well you'll do finding friends
Yeah, see that "make websites and publish it" makes it sound like you're looking for people to do work, not friends
Either way, be sure to read and understand the #rules and all will be well
Would smth like /rule <rule no.> @user and then the bots dms that rule from the saved template be great rather than the staff explaining them the whole thing
And yes the bot dms on whom it is used on
assuming you have a pre-written list of rules yeah
Nope, that'll get your bot quarantined so fast
will it actually
Why?
Yes
DMing others without explicit intent on behalf of the recipient is considered spam
but what ever happened to "you were muted in {server} for {reason}" DMs
The DM has to come from the user recieving the DM to do something to get it. Slash command, button click, etc. Sending someone else a DM doesn't cut it
So would there be any limit smth how like how many times you can do that per day
Same thing: it's spam. And if the user clicked on "this is spam" the bot gets flagged
oh, how wonderful
What does getting flagged do to the bot
I'm sure there is, but those numbers are undocumented for good reasons. Also, all it takes is one person clicking on "this is spam" for it all to come tumbling down
Anything from temporarily revoking API access to permanent revocation. I'm sure there are other punishments but I've never had a bot get flagged so…no idea
So what can be the workaround I wouldn't want the bot putting it in main chat (like tag for it) and also just telling the user to check rules channels for this or that rule also feels not quite handy(I mean it is but trying to have smth new)
The best way, IMO, is to put it in the main chat and ping the user. It's a lot easier to do, won't get your bot actioned, and is more apparent to the user. They might not even see the DM notification right away. And even if they do, they might not check. It's a lot of clicks/taps to get to it.
Or, if it's in the chat, they get pinged, it's got the "look at me" background, and it's where they currently are at. All upsides, IMO.
-# s a bonus, it shames them in front of everyone else!
Just my opinions, of course
but dont literally all modern moderation bots DM the user their moderation case by default? it's not an opt-in/out feature (at least on all the big bots ive tried out), it's set by default, wouldnt this logic just apply to all of those bots, and the only reason it's still up is because no one is reporting it?
like sapphire or circle, they ping the user getting moderated in the channel and DM the user
I can't speak to what other bots do, since I don't use 'em. That's the great thing about being a dev myself: I can code it myself lol
Also, "other bots do it" is one of the worst reasons to do something. Most other music bots break the law, does that make it ok for you to do that, too?
i think my hard drive is gonna fail
yeah im not using it as a reason to do it (i dont have a DM feature), just speaking from the point you made earlier as to why this wouldnt have just gotten their bots flagged for the same reason? if someone flags the bot DM as spam
Give it a peptalk?
Hello guys, What game engine yall use?\
JavaScript
I use Unity
I'm thinking about learning Defold, but for now I'm content doing it ally by hand in JS 🤷
Listen to it might have to turn up volume and with headphones to hear
I mean great idea obv but one thing I am trying to avoid is it staying in the chat you not always no till when the user reads to put the delete after x seconds thing
Sadly there are a few things that Discord is just bad at, and this is one of them. It's all trade-offs. Either DM them and risk it not being seen (and/or your bot getting actioned) or send it in chat and risk it…not being seen in an active chat :p
i guess what you could do is to have the rules pre-written and then have an opt-in for the user? "@user you were prompted to check the rule bla bla bla" and a button that, once pressed, sends a DM with the full rule?
That's one extra step for no real gain. At that point just send the rule the user violated
Another option you could have is a "don't break the rules" channel where rule violations are posted (and users don't have write-perms) and ping them there. More public than a DM but still in-server and not in the main chat. Just spitballin' ideas
Also, adds some deniability. "I didn't click on the button so I don't know what rule I was violating! So it's fine!" 🙄
Or maybe a channel with threads? Each user gets their own thread or something? And they're pinged in the thread? Just throwing out (probably bad) ideas now
as a bonus, it shames them in front of everyone else!
also it means no user will try to do minimodding themself as its already there
at that point id js have the rules list
people reading rules channel unprompted = sadly rare
making a thread just for that seems like too much
"@user you were warned for Rule 1. please check the rules"?
The big bots are very likely whitelisted
right
This seems to be the easiest and best way, IMO
reply to the message too
What if rather than just pinging them the bot pings them specifically mentioning(replying)the message id for that rule and these pings get deleted every 6 hours or so and just rules stay
Ye
thats what my bot has--it's also a reminder to other members to check the rule that was violated, and also just rules in general
I'm not sure what use deleting the message has
Deleting the ping from rules channel?
but what if you have a lot of rule violators daily and now you just have a massive pileup of mentions in your rules channel?
Oh, I didn't realize you were talking about the rules channel. I thought it was in the channel they violated the rule in
Make a thread I guess
Creates a thread for that rule which is probably temporary and private and gets deleted or archived or closed
Personally I'd make it a message command. Brings up a modal to choose what rule was violated. If it was done by a mod/admin, then reply to the message immediately with the "This messge violates rule X" with a link to the rules channel. If it was a user, then send the message to an admin-only channel for review by the server mod team
very tired 😔
Tbh there's no good solution
I get the results if I go to that college in 2 days :p
My idea was like showing the violator what they did rather than bringing it for review so early
also I think I'm exploring the number of files too much what do you guys think
Discord rightfully doesn't want bots to DM too much, but you also don't have any good way to communicate with a user about moderation actions
The review is only if a non-mod used the command. Which allows users to help police the chat
You could just combine the payloads with their respective objects
Looks pretty good, although I wouldn't make a separate enum file for each thing 
I would have that in my tickets right as sometimes you want to keep the anonymousity between user to user
Yeah, never share who flagged what
Yeah that's what I do, but sometimes I'd agree it's logical to split due to length (not that I do that but still)
I have a question, how can I transfer the owner of a discord group (up to 10 people) on my phone?
true maybe I shouldn't have split it so early
but I feel like it would grow to hundreds of lines pretty soon
Don't set a hard-limit of lines for yourself
Tbh length management depends on context
Also are you using aiohttp?
this i think I won't do
i feel like payloads deserve being splitted
yes
enums and flags maybe not so much
Is the http client "synced" with the websocket session?
I mean it's technically meaningless but I think they have a feature for that
I don't think it is "synced"
right now theyre completely separate
gateway exists in bot._gateway_session and http connection is in bot._state.session although I'm planning to revamp the structuring of that part soon
lemme show u what i mean
when I get to working on it
sure
async with aiohttp.ClientSession() as session:
async with session.get(...): ... # http
async with session.ws_connect(...): ... # ws
dpy does this iirc
so keeping the ws connection and the http connection on the same object?
can you have two base urls for a client session or I'd have to have full paths then
wait no
That wouldn't make sense
all good
I am ded meat today ahh
well I think I have 3 Discord bots running on my kubernetes cluster currently 😅
Nynu!!!
Okay... are we gonna ignore this cursed pikachu or whatever demon creature is that?
Ain't no way that's a real dog
It is lol

Heh, back at it again
what are you doing to get to that 😭 (without intentionally doing it)
Making mi own logger heh
oh damn
No colors though since I ain't adding colorama to it
Me making my own just so I could properly truncate the stack trace of le errors
maybe I'll try doing it too
There probably are unnecessary stuff here, but meh it works lol
they released basically at the same time
Are you making your own full logger? Or are you writing a Handler for python's logging API?
I don't know what a "full" logger would be, and it's not the latter either, but just a simple one. I'm not utilizing the logging API
So you're writing it from scratch. Why not use what Python ships with already?
You can use some string logic to make colors with logging
Is TracebackException not inferred from from_exception()?
Does the logging API truncate error's stack trace and displays only the relative filename, lineno, line code? 🤔
Well True, but I'll just keep it like this
If you write a Formatter that does so: sure
Well you can do raise x from None to only show the last thing
Overtyping (:
Not a huge deal but ye
Hey! I am planning to make a discord bot anybody wants to join?
I am new to this field
This server isn’t for recruiting
that looks soo much like the github og image
Huh, what does? The Python logo?
the og image
like the blue bottom and placement of icon and title
like it could be a common template, but i haven't seen that anywhere else
@modest geyser i have no idea what i did, but looking though old tabs i had.. uh
yea it sometimes does that
especially with old unloaded tabs
damn

That's generated by sphinx: https://github.com/sphinx-doc/sphinxext-opengraph/blob/master/sphinxext/opengraph/_social_cards.py
why is 🎲 called die lol
Because die is singular. Dice is plural
Game is dead
C is
C? Dead? ::Laughs in Linux::
Oh, C is hard? Yeah, it can be
wassup chat
Nothing
how to grow bots guys 🥀
Nothing special except my boss ordering me overtime
Upload to top.gg
oh
Be better
Make something crazy which no one has seen before
DDevs > Ddevs

Crazy kitchen sink 🔥
For example make a dinosaur bot which will be born from fish
Dinosaur born from fish
Pokemon bot but instead of catching pokemons you catch dinosaurs
ddevs > those
dDevs


developing Discord electric vehicle services
i guess discord api had limits for bots to upload media for non boosted servers but no wonder how my bot is able to upload more than 8mb?
what would the car name be
What type of functionality should a discord bot have, according to y’all?
discar
Any but not All
every bot is different
The Discord Department of EVs?
WumpyBumpyMobile
brb guys gotta earn some orbs so I can save up for a EV
😭 I was looking for an answer like “moderation”, “social”
And I don’t understand what “any but not all” means
There's enough moderation and social bots
a bot should specialize in one field, it should not be a kitchen sink (knower of all master of none)
Okay so don’t make my bot all in one is basically what you’re saying…
Yes
honestly people dont know how to search if smth exists before they make... like before my bot was the only real honeypot bot... now there are like 10 :p
If you are making a public bot. You should find something very specific that you can make or introduce a large twist on the conventional concepts of "moderation", "social", etc.
and not like they even do anything that I dont myself.. most are in features worse 😭
Basically what I was trying to do was get basic answers on what people want in a discord bot and turning it into a very specific functionality in that subject
honeypot - a bot that bans anyone sending a message in a specified channel to catch scammers
-# also contains moderation, tickets, automod, logging, economy!
yum
That I can't help you will. My 2 public bots have like 10 monthly command usage
tbf tickets can kinda make sense, but its really iffy and gets out of scope way too easily
its a balance as once you go over, you just made everything complex
If anything I think all in one bots should be separate bots that can be added per "module" and they just interact well with each other
Wdym 10 monthly command usage? More specifically, what do you mean by monthly?
i feel like this server is the worst place to find that stuff out as.... we all generally would just make anything we really want
Oh
I'm basically saying no one uses my bots.
Apologies then on my part.
gold wompus likes your bots
just make something that you see as missing from bots today and market it so
like dont try to do everything or something general
but be clear at why exactly one should use your bot
idealy you also care about this thing too
My bot is in 21 servers and is only really used during a specific time of year
It's a sports bot
So it is only used during the sports "season"
So buildathon champion role icon was always a golden wumpus and not a golden tree?
yes
Ngl, it looks like nuke mushroom to me
nice
I want to ask something
?
then you should ask
I want to verify my app but what should be the age limit for that?
@patent carbon @devout heath
Oh
that would be a crime... and they use Stripe for verification
if you believe someone used a fake id to verify their bot, you should make a report at https://support-dev.discord.com/
that's not really relevant to this server
It's discrod official server did discord pay you?
And can I apply?
no
So your work for free
My whole life was lie second time
He don't work here
So while work?
why would anyone here get paid by discord?
While?
Who i mean
Idk just asked
No one here, its just a server for ppl who develop things for discord. Thats it
Why so rude Buddy
Was that rude? Mybad
i do not work for free... i just dont work HERE
Sam
Can I apply to work and get paid
banner to body ratio is off personally... it's a little too 1:1, should be more like 1:2
The banner inside the container?
The box would be empty below so that's why.
ya... it looks like the color and the black background part are split evenly 50/50 and it just looks weird to me, personally
ya that makes sense
I don't have any content to add there lol. If i do what you said, i would've to make the container smaller and it would look weird ig.
Keep the content as it is, make banner smaller and whole container bigger?
@wide pasture DMs.
dont call people to your dms... if you have a question ask here... calling people to your dms is a common scammer tactic
help
cant help if you dont ask a question
The bot is giving a hardware error on the Discord developers portal.
i dont know what a hardware error is... can you send a screenshot?
or at least list the error message exactly as is and where?
I can't take screenshots; my computer is broken.
Bot creation error.
I'm Turkish and I'm using translation.
well, then unfortunately i cant help you as i dont know what error message youre talking about
Bot creation error
and that's not specific enough for me to understand... where is that error coming from? what page? what is the entire error message? word for word
just take a picture with your phone
Or ask SoraAi
What error is it display in your console
he said it was a dev portal error, so not in the console
Hmm
but i also am not certain that's what he means.... or if he's using a 3rd party bot maker
He clearly said developer portal but what is the hardware error
hey, ive had people say it was a dev portal error then say theyre using BDFD and that's where the error was coming from
My bot needs to know the list of members of a Discord server who have a certain role. Do I need the "server intent"?
hi samtino
you need the guild members intent, yes
o/
func Pointer[T any](o T) *T {
return &o
}
do you think this will be useful?
so converts anything to a pointer?
yeah
I've been waiting for validation since April 15th...
i mean can't you already cast something to a pointer?
and response times could be as long as 6-8 weeks
just keep waiting
pointer := &10
// syntax error
and yeah, it will be wrong pointer because memory allocation happens when you pass arguments in function
Does ts have an equivalent for typing.cast?
cast(Lie, "lol") <- type checker: yup that's of type Lie dw
it will be pointer to variable inside the function
hmmm nevermind, looks like your helper is actually the recommended method of casting to a pointer
Initially, I requested "message content intent" but was told that it's rare to get approval from Discord. So I switched to slash commands. Do I need to resubmit my request even if I haven't received an initial response?
yes, prefix commands are not the reason for being approved for message content intent
it's not rare... but your usecase has to be justified... and prefix commands is not a valid reason
But can I submit a new application without this intent?
-# i wrote this @ 3 am
but as for resubmitting... i believe you can submit any amount of times you want... as you can't modify or remove an existing request
uh okay.
Why do you need to resubmit? Do you need one of the other 2?
they already submitted one with message content and members... im assuming
They will give you the others if you have valid reasons and include them in the original request. It is not all or nothing
I need Server Members Intent
My bot needs to know the list of members of a Discord server who have a certain role
if you already made a request asking for that intent and for the reason you listed, then you have no reason to make a new request
even if you asked for other intents at the same time
QList<QMap<QString, QList<QMap<QString, QDBusVariant>>>>;
wtf am i doing
lmao
even if they reject others intents ?
yes
as wolfy already said... it's not all or nothing... you can be partially approved when some are denied
Hello developers and those who feel like developers
I should rewrite dbus call it meowbus or catbus
bus mentioned
hi maukkis
the pointers on the bus go round and round
sometimes i forget this is UB
int *ptr;
*ptr = 10;
Well yes!
Sort of. For type narrowing or widening you can use as e.g.
(person: Person) => (person as Developer)
(developer: Developer) => (developer as Person)
but if the type cast would be fundamentally incompatible (i.e. not covariant), you need to first widen the source type and then narrow it to the target. This should almost never be used but there are some scenarios that call for it:
(person: Person) => (person asunknownas Flower)
unintialised pointers are just a pain sometimes
Dangling pointers are worse
Just get into the habit of setting all pointers by default to NULL
from my understanding
the variable ptr is stack allocated, but the memory it points to is somewhere else and might not be on the stack, so you are derefercing and modifying memory somewhere else.
While this works because num is stack allocated so can actually modify it
int num;
int *ptr = #
*ptr = 10;
Or in C++ int *ptr{};
honestly that's actually a good idea
Yes kinda except a ptr is just a memory address with type information
sacul learns C
rip
Default initialize everything
it's been like close to half a year now :))
icic
Also another C tip add these compiler flags
-Wall -Wextra -Werror
no matter what in C i would always just do
int *ptr = NULL;
/* then work with it */
daymn, with you good luck, im on go for around month or so
This actually prevents you accidentally using uninitialized variables
wut does that do
oh
Enables all warnings and treats all warnings as errors
that's nice
Helps you catch a lot of ub
Well actually it doesnt enable everything for example theres no -Wpedantic
But Wpedantic is annoying
for that you can just use a lang like python
Yea
You can always use compiler extensions as a treat
Also all mainstream compilers actually implement most of the gnu extensions
So…
Python
piton
no
y no
overused meme
... so ... aix?
@daring wasp
I pushed le commit for le logger lol. You can check out the code for it and see its abomination

