#development
1 messages · Page 12 of 1
I’m done with this… Radio buttons always have a value and a label on the options. And are treated as a singular collection of objects to answer one question or input requirement.
this will create a channel that only my bot will be able to see and nobody else, yes?
Breakfast, the language of the future.
BreakfastLang ™️
Idc minus points for not making waffle a valid keyword
No
Cause you're doing it wrong
do you know what the word deny means?
Soon
Also you're missing the point of denying permissions for everyone else
Pancake is the function keyword :^)
That would only make it so the bot doesn't have permission to view it
I'ma fork your language and make it waffle
like this?
Pancakes should never be a thing
Pancakes can be stacked on each other (hence the call stack)
See
Try it and see
I wanna code with pancakes.
Waffles can be stacked too
Okay
I love that…
// Lets now prompt the user about creating a modLogChannel
response = await awaitReply(
message,
`Do you want the bot to create a customized logging channel that's exclusive to our bot? (Yes, No, True, False)`
); if (["y", "yes", "true"].includes(response.toLowerCase()) && response.length <= 256) {
const customizedChannel = message.guild.channels.create("hater-mod-logs", {
type: "text",
permissionOverwrites: [{
id: client.user.id,
allow: ['VIEW_CHANNEL', 'SEND_MESSAGES', 'READ_MESSAGE_HISTORY']
}],
permissionOverwrites: [{
id: message.guild.roles.everyone,
deny: ['VIEW_CHANNEL', 'SEND_MESSAGES', 'READ_MESSAGE_HISTORY']
}]
}); if (customizedChannel) settings.set(message.guild.id, customizedChannel.id, "modLogChannel");
} else {
response = await awaitReply(
message,
`Do you want to select a logging channel you've already created? (Yes, No, True, False)`
); if (["y", "yes", "true"].includes(response.toLowerCase()) && response.length <= 256) {
response = await awaitReply(
message,
`Which channel is a mod logging channel? (Ping, Mention, ID)\nThis will be used to log information about changes in the server and/or what the bot is currently doing.`
); if (response) settings.set(message.guild.id, response, "modLogChannel");
};
``` this going to work?
does creating a role is indentical to this but with mesage.guild.roles.create?
helo?
why did everybody die :c
I’m on mobile watching House.
why dont u just use buttons?
inb4 “I don’t like them”
I don’t wanna read the unformatted wall of text that looks like it’s all a blob on phone… they really need to fix that.
no no I actually integrated buttons to some of my commands they're quite okay now
imagine having a straightforward pagination lib at hand's reach 
but I used response for this command specifically since the bot will also ask you text not only buttons
modals
or simply comboboxes
Yup
WHAT EVEN IS TAHT
combo box, dropdown menu, select menu, whatever u call it
So many options other than the appalling and outdated message response.
Oh my bad I think it was parm
lmao
Tf you need a lib for this? 
okay could anyone please test the server setup please?
I'll be up for testing ur bot anytime u want
why don't you do it?
my bot is kinda biased towards me with permissions which kinda makes it work only for me sometimes
use an alt account?
I want to make sure it work for other people as well
Create an invite, open your browser in private mode, use the invite to join as random member
I would have to reset my pass to my alt which would take some time, I'm asking because I want to save it
if u don't want to then don't do it
🤷♂️
im just giving you a solution on how to test it yourself so it's faster for you and you can test it however you want
Nope, read above
When you say biased towards you… have you made your bot ignore permission requirements for your user account?
if so that's kinda rigged af
you could literally ban anyone
from any server using the bot
I’ve got owner only commands… but they don’t overwrite the permission requirement…
If a command needs admin, and I’m not admin. Even if it will only execute for me, I cannot use it.
tbh, biasing perms to prevent yourself from being banned, or allowing you to ban people in servers you dont have permissions in sounds like a good way to get people to not trust your bot.
omg it's woo
100% agree
it might even be a tos violation
it is
Pretty sure it’s against tos…
Like can’t get your bot verified and gets you banned from the dev portal sort of against tos.
process Discord Data in a way that surprises or violates Discord users’ expectations.
Yeah, seems it goes against the discord developer policy.
Like I said. Stops it being verified and you get banned from the dev portal 😂
yeah lol
Yeah I’m ima stop you there.
probably not a good idea to admit that here
nah it's not like that, I didn't do it on purpose
Reverse it. Now.
just the way I coded it
If you need that for testing… TEST IT IN YOUR SERVER!
even if its unintentional its still a violation of discord tos.
I made a permission system from 0 to 10 based on what permissions you have
10 is bot owner
bot owner only checks for the owner ID which makes it ignore each permission check

My own bot literally can and will ban me for calling woo the N-Word if it was here and had auto mod enabled.
This is against tos…
You would be able to use staff only commands in a server you aren’t staff in if they use your bot.
it's not like I do
if member.id === message.owner.id in the ban command lmfao they can still ban me
no I wouldn't be able to
there are still permission checks in the commands themselves
Your permission checks literally in your own words get ignored if you are the owner.
the role checks are an additional layer of protection
that's why I said it's buggy
hey all ,
TypeError: Cannot read properties of undefined (reading 'FLAGS')
anyone can help me ?!
V14 DJs doesn’t use flags anymore
Be it intents or permissions flags.
Well, how do I stop it?
What’s the part of the bot causing that error? Intents?
by each permission check I mean the checks before the owner role
permission tags 0 to 4 are server permissions
user
mod
admin
owner
all of those 4 check for permissions in order to determine what u can do, they can also check if the user auto assigned a role which also bypasses the permission check
server owner tag checks for id, not for permissions since there can be only one true owner
const client = new Client({ intents: [Intents.FLAGS.GUILDS] });
mine is just higher, it automatically calls me the bot owner which is 10 therefore I have a higher permission level than them and can do more with my bot
I still have permissions check IN the commands themselves which makes me unable to do anything
Or…
you better read that @hard wraith I spent like 5 minutes writing that
so either you having the 10 permission does nothing or it does do something and its violating TOS no? Though you are explaining this in a very complicated way. Unless the only thing its doing is giving you access to like a test command or something for debug purposes
I did. And I don’t care. You described a system violating TOS and I’m telling you to remove it.
This ran without any problems
thank u
NP
Can you explain what is the importance of IntentsBitField
Means you don’t have to know the bitfield number of each intent?
Idk… it’s something DJS implemented to replace how they used to do intents.
UMmm
it's not really doing it, I STILL DON'T HAVE PERMISSIONS
what I mean is, becaue it kinda makes it ignore the permissions it breaks the role check for me
it doesn't mean I can ban someone without perms in a server
Ok
jesus
const customizedChannel = message.guild.channels.create("hater-mod-logs", {
type: "text",
permissionOverwrites: [{
id: client.user.id,
allow: ['VIEW_CHANNEL', 'SEND_MESSAGES', 'READ_MESSAGE_HISTORY']
}],
permissionOverwrites: [{
id: message.guild.roles.everyone,
deny: ['VIEW_CHANNEL', 'SEND_MESSAGES', 'READ_MESSAGE_HISTORY']
}]
}); if (customizedChannel) settings.set(message.guild.id, customizedChannel.id, "modLogChannel");
``` also why doesn't this work?
so then it still sounds like it doesnt do anything which means you should just remove it
I'm not going to "just" remove it wtf I spent hours writing that
you spent hours writing something that doesnt do anything?
const mutedRole = message.guild.roles.create({
data: {
name: "Muted",
color: "#000000",
permissions: []
}
}); if (mutedRole) settings.set(message.guild.id, mutedRole.id, "mutedRole");
``` this doesn't work either?
it does? it works perfectly, it only breaks for me
Because you made it break for you…
you keep saying it doesnt really do anything, so which is it?
Is your bot on a GitHub?
I said it breaks for me I never said that it didn't do anything
can you help me with my code
in what way does it break?
it's closed source
then open it 4head
I want to see this permission check system to cut the bs and see exactly what it does.
it doesn't check roles for me, because of the way I did the number hierarchy 🙂
no?
What are u trying to do
SO IM RIGHT! It lets you use any command without having the required permissions in any server.
Well, after the update the robot can't talk, It has been completely muted 😂
and no errors
so it bypasses a role check, and then what? If that does allow you to do something you couldnt do before, than that violates the TOS, if it doesnt, then it does literally nothing dawg 🤣
dude nothing I don't want help with fixing that, and it's not against tos can u just check why my server setup command doesn't work
Because you haven’t enabled message content privileges intent on the developer portal.
Is that against ToS?
IT'S A FUCKING ROLE CHECK MY BOT STILL HAS A FULLY SEPARATE PERMISSION CHECK
Yes.
this is the most troll convo
Wtf is this conversation
Is there anything else?
I literally cannot fucking do anything in another persons server you guys are trolling me
I don’t believe that’s against ToS unless you’re using it to avoid punishment or something like that
THEN SHOW ME THE CODE FOR THAT SYSTEM. You explain everything different each time.
Guys chill out
My bot has the same system, there’s even a prop in detritus for commands called clientIgnorePermissionsOwner which I always set to true
Add the message content intent to the intents in your bot source code.
I'm not going to just let you see my work, send me your bots code then
thank you
I don’t believe that’s against the ToS unless there’s something I’ve missed
it's not idfk what they're talking about
How is that .
On which djs version are you?
Even if you're giving yourself administrator in guilds where ur bot is it, I'm sure it's not against the ToS at all because the Admins have the responsibility for what the bot does in the server.
14
that is def against tos
Okay explain then
I have a permission system that accidentally ignores me because of the number hierarchy system I got going there
ANYWAY
can I please
Anything else Bae?
bot cannot do things you dont expect it to do especially in a malicious way like that
just get help with my server setup command
I don’t hide my bot code.
Just show us what you did in your code and explain what you wanna do
There's no such thing where avoiding check conditions is against ToS ( unless ur abusing the API or misusing the it in which case you're not )
Listen to me, I don't know anything about djs14
I don't know why the robot does not react to my commands..
It does what it says it does, it works how I say it does. And it’s source code can be viewed and have other bots based off it. But some features are protected under patents. But they aren’t implemented yet.
Check index.js in my azure link.
great. I do not because it's malicous, but becaue it's my work and I don't wanna share it
it is
You may not use the APIs in any way to:
scrape any Discord Data; use Discord Data for any purpose other than as necessary to provide your application; disclose any user’s Discord Data without their specific, informed consent; disclose Discord Data to any ad network, data broker, or other advertising or monetization related service; retain data any longer than necessary for the operation of your application; contravene Discord’s Privacy Policy; obtain Discord User passwords to obtain access to Discord Data; sell, license or otherwise commercialize any Discord Data; provide or direct services to children under the age of thirteen (13) in the United States or, outside of the United States, the relevant age of digital consent;** process Discord Data in a way that surprises or violates Discord users’ expectations.**
That doesn't mean that you'll face consequences
https://discord.com/developers/docs/policies-and-agreements/terms-of-service there is no such thing against the developer Terms of Service
Integrate your service with Discord — whether it's a bot or a game or whatever your wildest imagination can come up with.
dawg what
I haven’t removed it’s need for all intents yet, so use that to find the intents you need.
what do you consider discord data then
Well, you gotta need some knowledge to work with the library tbh
data obtained from or sent to discord
why did I start this massive disscussion 😦
Ok.. and
welcome to top.gg
Without showing us what you did in your code we can’t help you
I rest my case then
I was unaware of said clause
Because you’re so confusing you basically made your bot both violate tos and not violate tos at the same time in one paragraph.

So who defines if it "surprises or violates the Discord users expectations" as I could just impersonate a case like this to my own advantage
i would assume discord
@boreal iron , Just qus: how add message content intent
I said it's a role check, it does bypass the role hierarchy because I made my own permission level be at the very top, however that does not bypass the actual permissions meaning I still can't do anything if I don't explicidly have permission from the server owner
Keep in mind to keep things civil, I wanna be able to talk to the other without an useless shit show going on
yeah so u can just tell em "the bot might be responsible for administrative cases, please acknowledge "
but if you eval through your bot finding a guild that has the bot administrator already and gives you an invite (which is violating too) and then give that admin role yourself, it is
This is why my bot’s published source code is public.
Can’t hide anything if they can see what it’s running.
why would I do that
Just stating a possible clause that would allow it
if consent is given, you can do whatever you want
as users technically expect that
just
To listen to guild and direct messages, you need to subscribe both intents, GUILD_MESSAGES and DIRECT_MESSAGES
I mean people would have to agree ur conditions which technically means consent is given
😦
thats also not really how that works
By that logic ofc
comapnies cant legally murder you if they put that in their TOS
Yes it is, syrutex just defined it
Oh, yeah, that's what I want to know
const mutedRole = message.guild.roles.create({
data: {
name: "Muted",
color: "#000000",
permissions: []
}
}); if (mutedRole) settings.set(message.guild.id, mutedRole.id, "mutedRole");
``` the role is being created but the saved value is "undefined"
no
Well… cigarettes…
- bot doesnt have admin
- bot owner doesnt have 2fa and the guild has a 2fa requirement
- bot doesn't have permissions to manage roles
dunno the context though
so
just because something is in the terms of service doesnt mean you can do whatever you want lol
it's a server setup command
yes u can lol because people agree to ur conditions
// Lets now prompt the user about creating a mutedRole.
response = await awaitReply(
message,
`Do you want the bot to create a customized muted role that's exclusive to our bot? (Yes, No, True, False)`
); if (["y", "yes", "true"].includes(response.toLowerCase()) && response.length <= 256) {
const mutedRole = message.guild.roles.create({
data: {
name: "Muted",
color: "#000000",
permissions: []
}
}); if (mutedRole) settings.set(message.guild.id, mutedRole.id, "mutedRole");
} else {
response = await awaitReply(
message,
`Do you want to select a muted role you've already created? (Yes, No, True, False)`
); if (["y", "yes", "true"].includes(response.toLowerCase()) && response.length <= 256) {
response = await awaitReply(
message,
`Which role is the Muted Role? (Ping, Mention, ID)\nThis will be used to make the \`-mute\` work. It will assign the role to whichever person you wish to mute.`
); if (response && response.length <= 256) settings.set(message.guild.id, response, "mutedRole");
}
};
this is the entire thing
are you just ignoring everything i said
Bot missing perms
it's got admin
You are ignoring what I said and neither are you backing up with evidence. Guess you'll never be right after all
plus it checks if the role was created before saving
what did you think this was
Me when I don't know how to handle errors
Shocking
thats past the context of a tos, thats law
Okay so, you subscribe to them when creating your client like so:
const intents = discord.GatewayIntentBits;
const client = new discord.Client({ intents: [intents.GuildMessages, intents.DirectMessages] });
🍿
okay, so if i put in my tos that i now own everything you have
well you agreed to it
Ignore the mobile format fuck up
No, Discord owns the data and u can't ( I think ) hence dankmemer sniping was taken off cuz it's a breach
TOS is the user’s agreement to what they can and cannot do with your product service as outlined by what it can do.
in context to discord, you could technically do that
good luck holding that up in a court of law
Tos don’t outline what your bot can do to them.
Terms of service are exactly what they say they are, terms of you using the service. It is not a law, nor can it bypass any laws in wherever you live.
- I have the rights over your whole servers and can do whatever I please to
would essentially make you valid
That’s like privacy policy etc… and service description.
also ,
In the discord ToS, I believe it actually states somewhere that all laws for your area still apply
You're getting consent by servers accepting your privacy policy
You can’t state that using this bot grants me power to do as I please in your server.
Well show your code then, I can’t see what you did
What I was saying tbh, agreed
Which would apply with or without it being in discord tos
const Discord = require('discord.js');
const intents = Discord.GatewayIntentBits;
const client = new Discord.Client({ intents: [intents.GuildMessages, intents.DirectMessages] });
client.login(process.env.TOKEN);
const queue = new Map();
const prefix = "!";
client.on("ready", () => {
console.log(`${client.user.tag} Logged in !`);
});
client.on('message', message => {
if (message.content === '+ping') {
message.channel.send(`🏓LatLatency is ${Math.round(client.ws.ping)}ms`);
}
});
...
you agreeing that i own all your possessions now if you use my bot in my TOS isnt breaking a law but you still cant do that lol
thats a ethics thing, you can get consent for whatever shit you want and would be aight as users consented
You could only do something like that if it were solely your service, not relying upon any other service like discord
Discord however has a tos in place to prevent things like that
you could even say
- I'll join your server, scream around and leave it again at 3PM every Monday
You’re missing .flags
and is still considered consent
Hence the "surprising users" clause
Did you not read the guide I sent
a guide not provided by discord?
Stop spreading wrong informations
He ain’t missing anything
I don't know, because this is my first time using Djs 14
I'm doing this in all of my terms of service from now on
He is using intentsbitfield… the docs state his method needs .Flags before the intent name…
Amazing conversation
this is also ignoring that if discord bothered to read TOS's your bot would most certainly be denied for verification if you tried to pull something slick
Which is now confusing me because my bot works using intents without flags but the docs show otherwise…
Believe it or not, it would error if he needed to 😉
Dude a last time stop spreading wrong information if you don’t know the lib
as long as still in context of discord, otherwise your privacy policy* would be to laugh at and not be serious 
essentially:
- you could get any consent from users as long as it is within discord
examples would be:
- I can join all your servers and ping you, then call you a dodo head
- I can ban all your members from the server to keep my bot usage down
some not allowed examples as that would be against tos are:
- I can raid your server every day
Those aren't docs either, that's a hand holding guide for djs
TypeError: Cannot read properties of undefined (reading 'GuildMessages')
When I put the flag before the intention
ex: const client = new Discord.Client({ intents: [intents.Flags.GuildMessages, intents.Flags.DirectMessages] });
I fucking know DJs prick. I’m going off the DJs v14 guide I literally pasted a link to. Yet it’s confusing because the guide shows opposite of what it actually uses…
dont think youre getting away with bypassing the surprising users clause just because its in your tos
It's a guide, not documentation. If you want accurate information, use the OFFICIAL documentation
if some popular bot just like deleted 20000 servers discord is def gonna do something
nah since the users consented to you doing that
Or refer to tried and tested v14 code
Exactly what I meant. It has to be within the ToS and once people give consent like if u credit it and make users agree to conditions, you can technically do what they've agreed to that's within the ToS and thus perfectly fine as long as you're not doing stuff like tracking invites or malicious other stuff
You literally have no clue what you’re talking about.
The intents are correct as we’re using the gateway intent bits
like tracking invites
would again be fine if consent
True yeah
@earnest phoenix refer to this… it works.
anything in scope of discord, with consent, is essentially fine
consenting doesnt make it not surprising, youd have a hard time saying you expected all users to read through your entire TOS thoroughly
well if they wish to use the bot, yes
you do have consent
as they invited the bot
agreeing to the use of your tos and privacy policy
even if read or not
this ?
const client = new Discord.Client({ intents: [intents.GuildMessages, intents.DirectMessages] });
That's why tos is on the invite page of a bot
still doesnt make it not surprising lol
there's a difference between actually surprising and legally surprising
well, ignoring the ethics part as it would be surprising, but is still fine per tos
Yeah try defining it as intent not intents. Going off a hunch looking at the archived code from when my intents didn’t work.
if people consented to it, I doubt. Also, servers technically can't be deleted but only nuked. But again, if permission for each action e.g deleting channels or changing roles is granted I doubt they would take actions lol. The consent matters not the size
if it would be surprising, then it would not be, per the discord TOS
Legally, you are to assume that the user has read and agreed to your terms of service upon using your service
surprising essentially means: "I was never informed about the bot doing this"
@rustic nova sorry if im not supposed to be pinging, but is it fine if i ping support team for my issue in #support
“I was never informed Facebook did this”
this is exactly what I wrote... smh
if you truly believe that then you are more than welcome to go make a bot that fucks people over but put that it does that in your TOS and ill eat my left shoe if discord doesnt do something about it lol
there isn't any property called flags in the gateway intents
Yes, that would be fine per tos, if I disclose that I do
const intent = Discord.GatewayIntentBits;
const client = new Discord.Client({ intents: [intent.GuildMessages, intent.DirectMessages] });
How do I tell you that the bot does not respond to my commands?? 😂
it wouldn't be great for users since they wont invite the bot
but I'd be on the safe side
like i said, more than welcome to test that
if they read the tos/privacy policy
sure
Wanna do it. I'll make a project on Github on an alt and we'll structure and plan ahead.
No surprises, it's all written and formatted properly so users understand.
the TOS is not a magical document that makes you 100% protected against literally anything
An event called message doesnt exist anymore, it's called messageCreate
Your intents as I wrote them are still correct
Then the guide that tells people how to setup their bot is wrong and I was referring to that. And DJs need to correct it. But you can see my code is right, so fuck off insulting my knowledge of the library when I’m effectively using it already. I however don’t spend my time fucking with my intents when I am trying to make my own node library for handling connections to my api I developed. Thank you kindly.
"You're inviting a bot that is the most invasive thing you will expect. Please read carefully to understand what you're inviting:"
"My bot will allow me to create invites of your guild. I will join your servers and annoy everyone within it"
"My bot will also occasionally ban random people I dont like"
"My Bot will allow me to obtain administrative rights through roles it created itself"
this is fine per TOS, as the users consented by inviting my bot, thus not legally making it a surprising thing
Legal loopholes. Love it.
As long as what I'm doing is still within discords TOS (api abuse etc) I am fine
Good luck getting that bot verified tho.
well it wont lmao
if you market your bot like that, sure
but if you dont, then thats getting classified as surprising
client.on('messageCreate', message => {
not working 😄
Kinda would do if u create 75 servers in total and get them all invited in those
It is within my tos and privacy policy, my users definitely would've read that so im legally fine
heres my cool music bot (oh by the way it bans everyone in your server)
When you get asked to stop providing wrong informations and confuse people, then there's a reason. That's not the fault of the guide. It's just a guide and not the docs.
yeah good luck with that bro
it wont get verified by discord since thats something discord would not like
No because they check what your bot does. They won’t approve a bot that does anything super invasive.
And I mean discord verified bot…
okay so if you agree discord wont verify than you are arguing just for the sake of it 🤣
Topgg would never test it if they read that description.
discord wont verify for their own decision, not a decision made over their TOS
That's not my point. I'm saying it's easy to get ur bot verified automated =/= its purpose
Can you write a code ping in djs14
Does your console log the ready event?
why not? if its allowed by the tos whats the issue
“Code ping”
That could mean so many things…
over power#4338 Logged in !
its a collective decision made by discord then, not their tos
They kinda would if it is unique and has a point and goes by their ToS as well, I promise you this.
if it was against their tos, they would tell me that and delete the bot likely
but I would be a decision on their own ethics that they dont want to verify the bot
Yes because the bot owner needs admin in all servers their bot is in 🤣
didnt know ethics was a part of bot verification now
ok, add guilds to your intents, like so intents: [intents.Guilds, intents.GuildMessages, intents.DirectMessages]
so for all intents and purposes, you cannot do the shit youve been saying you can do and this is a waste of time
they decide on their own after their tos
I mean, to get ur bot verified with the intents/perms on their page they'd want u to have a good reason for it as they state in their top.gg ToS rules
“Does it violate tos?” “No” “is the functionality of what the bot does unethical?” “Yes” “DENIED”
I rest my case again
- you can do any shit with a TOS and/or Privacy policy as long as users agree to it (inviting, pressing a button after getting hinted towards the tos)
as long as it is within discords TOS and legal per law
Yup
you cant lol
not working 🙂
Stop trying. Are you the law?
Why i vote the bot once and i got few webhook request?
are you?
No but I'm certain you aren't either so stop enforcing your thoughts over others.
Show full code.
const Discord = require('discord.js');
const intent = Discord.GatewayIntentBits;
const client = new Discord.Client({ intents: [intent.Guilds, intent.GuildMessages, intent.DirectMessages] });
client.login(process.env.TOKEN);
const queue = new Map();
const prefix = ".";
client.on("ready", () => {
console.log(`${client.user.tag} Logged in !`);
});
client.on('messageCreate', message => {
if (message.content === '+ping') {
message.channel.send(`🏓LatLatency is ${Math.round(client.ws.ping)}ms`);
}
});
So I can technically tell any company I agreed to their TOS that I will sue them for what they did mentioned in their tos?
sure
You see your issue right?
how did we get from "you cant put literally anything in a TOS" to "i can sue companies for anything"
Thats your point, no?
Yes, where is she? 😂
that you can say "I dont like your TOS I will disagree for what I agreed to"
Where’s this…
the first half of this sentence is saying that wasnt my point but okay
i cant see anything from your screenshot :))
You can’t handle prefix commands in messageCreate if you can’t read the message content.
You need the MessageContent intent.
Just do me a favor and log your message inside the messageCreate event, please
that is what I mean, not suing but essentially going against the TOS you agreed to
It will return everything except message content.
i mean companies have been sued for bad TOS's so yeah?
His bot can’t read the message contents. Because he hasn’t given it that intent in his code.
no company would ever be sued if you could put anything within legal reason
well bad TOS, that's not in the scope of what I'm referring to with disagreeing what you previously agreed to
putting anything in a TOS is not in the scope of a bad TOS?
@boreal iron , @hard wraith Thank you, I will delete the discord now
What?
Whatever, still have rest my case
If his ready event executes but message event doesn't then he hasn't given the intents pretty sure
And v13 and v14 address their intents differently which is indeed confusing, also fuck discord docs it's confusing and they don't properly maintain it just like the complaints they receive
Up to you if you wish to stay with your opinion
Literally said that 4 times…
lol
And showed an example from my own bot of how to call intents.
Instead of faffing with the outdated guide…
And v13 and v14 address their intents differently
They do not
They do, Discord has done a change to whatever I've seen when I went to the v14 docs and upgraded by accident
They really do.
The intent bit field always is as the API excepts it
Read the damn intent bitfield guide.
That’s using the v13 method when v14 is different.
from the update guide
They just changed the way how you do the bitwise operations
Yup
thats being pedantic
But all in all… the issue with his commands not working… he never included intent.MessageContent so couldn’t read the command in the messages the user sent.
@hard wraithCan you give me all your intentions in a message? Because I don't see them in the screenshot
Yes this is exactly the same as before, where gatewayintentbits represents the bitfield, the enums literally store the bitfield
404 - Page not found
you use the enums instead of lettings djs parse the flags for you
the point is you have to change the code from v13 to v14
lmao
which is obviously whats being discussed
Try it now.
working
who are you talking to
Azure repo URLs are different to GitHub 😂
I made the greatest ever setup command
like it's literally beautiful
it's so easy to use
Better than passing in a command and it using modals?
100%
like I'm not biased right now I actually like modals and buttons
Cus I doubt that. Cus I’m still waiting on them to fully support modals as it will be the best method for handling things like setup commands.
but I actually made that so good
I will maybe add an option to do that in the chat or a modal later
Or in command options like channel, user and role selectors.
but that's actually soo good
do you wanna test it? I wanna hear people's opinion on it
From what I’ve heard your bot gives you full perms in any server it is in, so no.
Tf you now like interactions from hating them yesterday?
Impressive change 
Probably learnt how to effectively use them. That’s usually what converts people.
Probably actually tried them instead of refusing to try it*
I remember that has been suggested like… uhm 1000 times
Buttons are so inferior in my case because they just have unique ID… so you have to then have a messy button handler for every button ID… like if I have buttons I wanna be able to pass in “ID” and “Function”
Like so I can use the accept ID for multiple button interaction sending commands.
create a temp one you can delete it later
started getting better at using buttons
Not always possible…

what do you mean?...
There are many reasons to have multiple permanent messages with accept and deny buttons.
Buttons just aren’t as effective as slash commands in my opinion due to the limitations of the data they hold and can pass to the interaction handler.
That’s the basic idea of your interaction handler, you simple filter both possible interaction types, either it’s a command -> command handler or any interaction caused by component -> component handler
Both the commands and components being thrown into own modules
That’s the basic interaction handler
can anyone test it then? 🙂
i would love the chance to break someones bot
Then go for it
I know! But you’re missing the point. You have two embeds with accept and deny for tos and privacy. The id for the buttons on both are accept and deny. I want the ability to in the button include something that links it to the embed’s function.
RangeError [BitFieldInvalid]: Invalid bitfield flag or number: MANAGE_MESSAGES.
I think we have another round? 😦
Else… slash commands are the better way to go as you have /accept (choice menu of all embeds you can accept in the guild)
Or the select menu message interaction…
Or a modal…
Discord added buttons and they are great for temporary things… but they are limited in what they give you to handle with.
You have that since the component interaction includes your message and it’s embed and contents as properties
Which makes it easy to identify which one being used
Easier than that is to work with the message ID
As the interaction provides which original message it has been used on
Which is in your case either the first or second embed
hey
i have a round


Ok yes that way yes… I guess I just stopped using buttons when they became redundant for my use needs so never looked at their docs in detail.
That's why I made a pagination lib
Yes, I am trying to update my codes, so from another account that does not have any roles for something that needs this permission
Devs only have to care about passing functions to the buttons, my lib handles all the rest
wonder if u can 
my bot is well written
if u can
I'll give u my 2 months xbox pass
I ended up making my own content moderation lib because Google and Azure both have ones and their user friendliness and docs were atrocious
So I just customised requests to their api using my lib to return user friendly methods and responses. 😂
Guess you need to take an hostage
I asked to see code. I will test your bot if I can see the code it’s running. Because after your confusing confessions earlier I don’t trust it.
I won't show you the backbone of my system, but that's the primary snippet that checks for the permission ```js
// This checks the level of the command and the level of the user
// and decides whether or not to execute it.
if (level < container.levelCache[cmd.conf.permLevel])
return message.channel.send(You do not have permission to use this command. Your permission level is ${level} (${config.permLevels.find(l => l.level === level).name})! And this command requires level ${container.levelCache[cmd.conf.permLevel]} (${cmd.conf.permLevel}));
and level is the users level, 0 to 4 is the guilds levels
since mine is 10 I can technically bypass this prompt
good enough?
Do you actually write the comments yourself?
yeah
Yeah but I literally can link you to the backbone of my bot, you only hide that stuff if you’re hiding something. Or it’s copyrighted…
so I didn't care to make it sound coherent
it's not I just don't want to share my work
i want xbox give me the bot
Right because I’m gonna steal your bot code when I’m developing a different system… that’s open source…
That’s okay but this channel still isn’t the right place to beg for testers
🤦 I just want to see your bot isn’t gonna fuck me over when I invite it because you post all trust and credibility when you said your bot breaks on the permission handler because of something you made.
That is basically useless once you count the fact commands now have default member permissions built into them…
You don’t need to check for permissions anymore… you just require a minimum permission. Or create guild commands to only work for specific roles.
Permission handlers are for non interaction based commands.
What
Self made permission handlers*
Permissions handlers are also for app commands
You don’t simply rely on guilds managing the permissions
For the commands
App commands I haven’t looked at. But she is using slash commands. Making something she claims to have spent hours on redundant.
what do you think bots can actually do
A lot…
it's not I can magically steal your token or something lmfao
I mean…
and I don't have slash commands so not gonna create anything in your server
If your bot had a dashboard you log into with discord then you could steal my token by handling it incorrectly.
I don't have a dashboard my website only has 1 button to invite the bot
But that’s just how logging into websites with discord work… bad code and your account token is stuffed…
It’s the same api
True. It’s how the person using it in their code can make it store your token and use that.
so will you be able to test it?
Have you actually made a website with discord login?
I…
Imagine if the OAUTH server would tell anybody your secret lmao
That’s not true.
I don’t know what to say here anymore
the command takes literally 1 second
access_token...
those are two different things
you can still do whatever the fuck you want as me with that access token.
you wouldnt need to...
at most I can get ur email, username and avatar pretty sure
auth can allow a bot to send messages and manage servers.
but you still have to agree
You can’t do anything with it outside the scope the flow was authorized with
so will anyone test it or not
That is true. But the service still has your access token. And how do you think the websites using oauth flow turn that access token into your actual token to steal your account?
Go on, try and justify your bs that every site using oauth is safe and they cant get your actual token... When discord literally acknowledges it is still a big threat and wants us to report any dodgy sites with discord logins.
bro my bot doesn't use an oauth it's safe
cool then ill invite your bot to a throwaway server on my alt account but not as admin.
Just as a note, access token != account token
You can't login using the access token
Once again the OAUTH flow will never provide your client token, once the access server has assigned that client secret to you for how long the session lasts, you can only get informations from the resource server using that client secret which simply is an identifier to the discord account NOT its token
jesus christ do whatever you want at this point, but you won't be able to test the command I want you to test since it requires admin
True. but somehow people are using oauth and getting your account tokens through the site.
Absolutely impossible
Why would a bot need admin?
An access token is a highly specific token created at that moment to allow access to specific data
because I wanted to make the command seem important lol
they have discord login, you enter your details and your 2fa and boom, they have your token.
are you able to test the bot?
Correct which has a specific timeout, it’s literally just a reference to your account (ID) the Ressource server provides details about
your command makes channels, sets channel perm overwrites and creates roles and assigns them to userrs...
Nah I'm fine
no bot ever needs admin
thats manage channels and manage users.
you were just too lazy C:
yes, but I wanted to mimic wick and ask for admin
wick needs admin?
you can't even execute the help command without granting it admin perms
Admin is a flawed permission that should be locked when "Public bot" toggle is on
then your bot literally is not safe...
Nobody except some idiot would trust it saying "i need admin to send an embed!"
Like, just don't allow inviting bots that have perm 8 if you're not the owner of it
it fucking is how is it not safe
it means incompetent dev.
Admin is not only "all perms", it also allows you to bypass any other permission anywhere within the server
Does your bot stop working for any commands if it doesnt have the admin perm?
The only 2 things that you can't do is alter roles higher than you or delete the server
Other than that, nothing is denied
or ban the owner even if they have a role lower
or kick the owner...
or even manage the owner...
can give them roles lower than it tho...
admin is a permission for lazy bot owners that don't want to handle permissions properly
and apply server templates.
always wondered about that... using pure rest api URL based put requests to discord, you can apply a server template with a bot...
do they actually apply it from the template url or is it just pushing in the channel and roles and making them manually...
Oh no...
And yes, the bot will be the owner
I tried with my website... it made a server but I was default in it with my bot...
and I was the owner...
then again I copied and pasted the code from some random site I found to do it... maybe it gave me the owner lol
the pure barebones discord api endpoint is more powerful than DJS currently is.
but djs is easier to work with.
ok then add it to a fake server?
Since djs covers 100% of the api features this isn’t accurate
and then delete the entire server after ur done with the testing?
testing the command will take you 30 seconds
How can still be able to type then?
Why when we have dedicated testing servers already set up? But I dont want your bot demanding admin and refusing to even print a help command if I dont comply. Nobody would agree to that.
Lazy bitch
🍞

wait dont bot invites just take the discord invite base url add the application ID and then specify the scope and permissions?
Ye
We could literally just change her invite link before inviting it lol
it only needs admin for the setup command wtf, I can delete it if u want
You can literally just uncheck the checkboxes 
It literally does not need admin
But if her bot then refuses to even function without admin perm then its stupid.
I only did the admin perm as a cosmetic cause I thought it would seem like more is happening under the hood 
No bot ever needs administrator
IT DOES WTF? who told you it doens't
No command should ever require admin permissions. Even top.gg specifies this for your bot to get verified in the first palce
the BOT doesnt need admin the USER does.
that, that would be acceptable.
????
Bots should only require the permissions they need
what are you talking about
Making a command require the user to be admin is a dumb fucking idea
are you guys trolling me
No she wants to make a fancy command look important by requiring admin...
You're the kind of person that'd add sleep(5000) to a transaction operation just so you can justify having a loading screen
lmao
Not really if it modifies the functionality of the server.
Then when the client calls saying it's too slow you charge extra to "optimize" it
There are permissions for that
???? it doesn't
No user or bot should ever have admin unless you REALLY trust that user
Yes but server owners give admin to people they trust to do that stuff...
don't give the bot admin, simple
I don't even give admin to people I trust
so thats when you make a command require a user to be admin.
wick needs admin for everything, it won't let u execute the help command without it
I feel like your trust in people's morales is too high
and it's the most trusted anti raid bot
I do... They are people that I trust to access all areas of my server and stuff...
and want unaffected by permission overwrites on channels
People you trust can easily become people untrustworthy
Yeah... and?
okay then are you going to test the command, I'll remove the admin requirement for a second
guys please
Mine is mine
we've spent 1 hour arguing about this
I just need
someone
to
try
running
a
signle
command
I just joined the conversation idk what's happening
The people I trust with admin also sign a contract that states if they do anything to my server they are liable for up to £20k depending on the damage it causes my company reputation.
It’s better you don’t
make your setup not require admin and I will test it.
sure
TL;DR: can't u just create a new account?
Genius
Also it makes sense for wick to have administrator looking at what the bot does
I mean this is a valid and easier alternative... Discord PC allows hot swapping accounts.
I literally just said it was cosmetic, Wick needs admin for everything and especially their setup command hence me wanting to copy that
I can remove that for you
done
Yes but wick has a valid reason
Wick sound sketch
wick is in around 2 million guilds? maybe more?
What does it do?
anti raid
It's functionality literally relies on being able to monitor the guild it's in
@hard wraith should I sent you the invite to my bot in dms?
And not be restricted by permissions when doing so
So like my bot that I was yelled at for having it need admin being told it can be done with other perms?
What does your bot do
At the minute not much as its bare bones. But the end goal is to have it enable server admins to run a safe and secure growing community safe from raids.
But even then, technically Wick doesn't need the administrator permission either, it only works with a few permissions, but it's there just in case so things don't get in the way
And unsafe content.
You should state here specifically to not get fucked by permission overwrites anywhere since admin isn’t affected
guyss please
Yes
😭
Wick just sounds like it does what I am trying to implement into my bot with machine learning lol
welp... im stuffed.
Idk wicks full functionality as I don't use it
But from looking at their page it seems pretty warranted
@hard wraith you're going to test the bot then? 
I even just made a machine learning based conent moderation lib custom for my bot...
A Discord bot that does moderation based on ML sounds like a horrible idea in the most part
without it requiring admin yes...
It would be a very hard thing to manage
already removed that
I have confidential things in my test server. Related to Azure Machine Learning that my bot uses.
just play bugs bunny in multiversus and be happy with life instead
I've seen a ton of bots that fuck up so many things just because they were using ML instead of manually given instructions
should I now dm you the link?
No no… people being serious at any time, no sarcasm no where which could confuse this process 
its based on azure content moderation api
It doesn't matter what ML API it's based on, it can always go horribly wrong
Especially in moderation
what's ML
true,,,
😮
Machine learning
oh lmao
leave that up to discord
they already check that
That could also go wrong depending on how well trained it's model is
not in slash command user input image urls.,..
anyway
ML is nice for checking for NSFW and other suspicious imagery and stuff
@hard wraith can I pleae
that can result in a bot sending porn to a sfw channel.
Ye
Just make sure you have a well trained model
Lest it deleted any images sent
Like azure or google...
two very reputable sources of advanced ML
My bot has antiraid and I never needed more than ban perm
They are definitely good but I'm sure it's expensive to use them
Unlike Discord's NSFW detection
I think even AWS has some ML.
when you test it first run -setup cause that's the command I initially wanted u to test out, then u can test the other commands if u want to
let me know what u think
I drew a non nsfw pic and discord deleted it for nsfw content
So yes
It's horrendous
Discord's NSFW detection is just so fucking bad, how did they fuck up so badly
I cant send a pic of me petting my dog cus its either porn or animal abuse according to discord.
yeh lol 😭
Because of your horrible drawing skills
Well stop taking pictures of your dog
I can send a meme and they somehow flag it
I cant sent Gru's mother because she's detected as nsfw
Ok boomer
let me show u a image of what discord flags as nsfw for me
Oh no... That was correct. She a GILF
To save other’s eyes
let me find it ....
Me when Discord's NSFW detection system flags a LEGO car as NSFW
💀
me when discord automod won't let me send "shit"
Discord likes fucking Legos confirmed??
PEGI 16 Lego car?
Kids shouldn’t take blocks in their mouth
You know 
Inb4 it becomes minecraft's censor "feature"
Thats commonly flagged word automod... or the user defined automod phrase list

Well I need some therapy regarding the last 30 min in here
this is painful
Who doesn't
Psychotherapist
I can't upload that image so dm me for it
So many new stuff I learned I swear
That's called a Psychiatrist buddy
You didn't see the meme did u?
What do you expect … American
Ok boomer
Exposure to #development for any amount of time requires a high-class therapy session, otherwise braincell loss at a dangerous rate can occur
It's all tims fault
Yeah after I learned the OAUTH flow provides your client token I can’t trust anyone anymore
You all wanna steal my token!
Get outta here
Im literally done
I'm bringing a lawsuit against top.gg for severe emotional trauma and brain damage contracted from spending too much time in #development
I feel like I should be the one doing so
I probably have more messages in this channel on this account and my old one than you guys combined
On my old account I had 60k messages over half was in this channel
Old account?
You sadly missed the last 30 min
People are dumb as rocks sometimes
I mean, rocks made processors so...
It's really hard to tell if they are joking or being serious
No metal did
Silicon is literal sand
Yeah I couldn’t believe what the dude was telling me, too
But… that’s how cursed this channel is
Close to be behind general
Lemme
I thought u guys were trying to troll me

What
Idk what you are referring to
Keep in mind I joined that conversation towards the end
It started around here Misty
I gently tried to explain how the OAUTH flow works but yeah
See for yourself
talking about referral tokens and how my bot was dangerous because of that
Oh god
People who think they know the secrets of the world is hilarious
Access token can be dangerous sure
Cause it can get basic info like your email and your guild info and shir
But in itself it's only temporary for one
OAUTH is designed so users don't need to give their token away
And two you can't do anything beyond that
That's kinda the whole point
As long as the scope includes that
You can't delete their account or anything with it
wait misty
Precisely
do you have a sec?
As long as you have the scopes you can access the information that scope allows
And any good oath implementation won't store your access token in an easily gotten place
I don't have the habit of doing so, so nah
Idk what’s up with him
He seems to be like this fake
Careful
He seems to be like this fake
Nah man I don't test bots
I don't understand
Did I say something bad?
Misty looking for@trouble
Nah I'm just not fond of people who think they know everything
That conversation could of spread misinformation
alr ig
it's 1 command literally can anyone else test it
Misinformation is not good when discussing development
Has been the entire day tbh
There are websites that steal discord accounts that use discord login.
They weren't using oath
But mods seem to be sleeping today
Wait why are you not just making an alt account? Did I miss your reasoning for it?
mods are here 👀
Odd Cus they asked for my 2fa when I lost my old account.
They aren’t
They were using a fake login page
Omfg…
And got your email and password through it
They even… damn they mimicked 2fa and everything…
Oauth can't be used in this manner
At least not to my knowledge as I'm no way a pro
I lost a great alt account to that site… that’s when I stopped looking for free nitro and just bought it.
Try your luck Misty
no there is no particular reason I just want another person to see it and give their opinion of the commad to me
I have 😂
There is also the possibility they just stole your token
didn't really say much about it tho
With your token they can bypass 2FA
Mods aren't here
@earnest phoenix think you may be able to if u want?
Wasn’t much to say as I’m still letting my team review the test and give their feedback.
oh okay, bye


