#discord-bots
1 messages Β· Page 428 of 1
Wdym meme? Like using Reddit API to take memes from a subreddit?
yes
Also wdym rank
leveling system
Isn't a leveling system really complicated?
just do something basic
nice I started like 2 weeks ago and I was kinda happy ngl cus I was learning stuff fast
But rip
actually nvm, ignore leveling for now
Also what's a good way to store values ie having a different prefix for every server?
Well, I started bot making with Discord Bot Maker. But then, I thought it's too basic. So I looked into making bots, first with js, then started seriously with Python
you should use an if statement to check if link is none or not and return if it is
A database, PostgreSQL or MongoDB are usually recommended
but i want it to check if link contains https://discord.com/ or http://discord.com or not, else send the error message
So nothing like a JSON file?
Above that, check if the user even entered the link, if they did then apply this check
i did that already
Json files aren't databases, they can be corrupted and aren't persistent, you can use mongodb, it stores data in bson which basically json format, not exactly sure about psql's json
Alright
Shouldn't have raised a NoneType error if it was handled
hold up
sqlite works really well too lol
or postgresql
yeah, better than json
yep well bye folks π
Cya 
i did it in the if statement itself
still the same error
if not link:
if not link.startswith("http://") or link.startswith("https://"):
https_embed = discord.Embed(title="Command Error!", description="your link needs to begin with `http` or `https`!", color=discord.Color.random())
await ctx.reply(embed=https_embed)
else:
link_embed = discord.Embed(title="Command Error!", description="this command requires for a link to work!")
await ctx.reply(embed=link_embed)
why are you checking if the link startswith if it is none, aren't you supposed to check if it is not none
oh yea
... If you want to apply for the message content intent, you cannot use it for command handling purposes; they will explicitly deny you the intent. Therefore, effectively everyone must move over to Slash Commands for their bot to function.
From that gist
Discord has been exposed
Anyone here for discord.py help???
Sure
first of all can u send me discord.py server link?
well, just saying, dpy will stop working from April 2022
Oh no
Danny quits
@pale turtle now u can make that bot vars PR of yours haha
so what will happen after that?
U won't be able to use discord.py
then any other way to make bots in python?
!pypi hikari
Rest in peace discord.py
Snekcord is also there
ok so d.py help can i get channel id by user input of channel name?
like if u give
security
Take a look at this: https://gist.github.com/Rapptz/4a2f62751b9600a31a0d3c78100287f1
I want to cry
then can i get the id
okk
what happened
Same
now just sum it up for me
Dude calm down
Me have to go djs
Hmm
We had a great run here π’
Yup
Language
so u think someone will folk and redo?
But it won't be the same tbh
No idea
bruhh i said sorry what happened
yes
Breh
Just read
no
Then dont
i just woke up
Then don't complain and insult people here
Yup
For real, the only one who can match Danny level and understanding of discord api, ,is Joe
!warn 534403455201312793 Swearing at other members is unacceptable. PLease re-read our #rules and #code-of-conduct .
:incoming_envelope: :ok_hand: applied warning to @gritty flame.
Huh?
ok
U know, Danny wasn't even a coder... He was a doctor or something
you can read the faq section in the discordpy server
hopefully that helps@gritty flame
The understanding for the discord API is not so complicated
Python bot written is discord.py, discord.py called of, soon message intent will be introduced. will this bot keep working?
Yes
Yup
Because it's not over 100 servers
Read #dev-contrib
i did
Message intent only affects verified bots
But I'mma shut down my bot :c
Move to another language :D
discord py isn't dead yet
you can make use of it with third party component libs
and wait till a contender comes out
if you wanna take the gamble*
make our own lib 
Do we really want to keep using Discord though?
We will still need to enable message intent. (i think???)
Yes
But no way to enable it in code
ik.
yea you do
You can easily enable messages intents if the bot is not verified
We can do it

yep
Here comes andy lol
write a handler for message_content in the intents class?
me too own a bot, and it has some games, i am wondering how would it be playing mini games using slash commands, ugh >_<
Time to leave 
Nah
I personally hate slash commands
at the moment they're slow bloated and unresponsive on both desktop and mobile
@pale turtle we can just do something else in Python itself
Ikrrr
that's not even addressing the fact that you have a 50 command limit
i start typing / and it takes forever to fuzzy find my command
And big bots with over 100 commands... How would they work π€¦
Discord is no more fun without dpy and I don't think working for something like dc is any good 
I'm rewriting my private wrapper rn maybe pushing it out soon next week

yes slash command bad, it is slow, sometimes unresponsible, literally anyone can use it, no permission checkksss, damn
There are permission checks....

True
@wheat prawn haha it's all fine. I know the feeling u r experiencing rn. The weird one. U can come back :D
mhm
So what do u all think u gonna do now?
Also, anyone here got an idea what I can do about my AI API I made for my discord bot?
make own, custom implementation of slash command, or switching to js
Lmao
I think... No
Likely move to hikari tbh
What is hikari
A lib like discord.py
!pypi hikari
But it doesn't have that feel tbh. I think I'mma leave bot making for the foreseeable future
yeah, I'm currently planning to make whatsapp wrapper, cause discord's sucks
yeah
sure
No more migration to other libs. Thanks dpy, the support server and this channel 
Yes
Me too @visual island Thanks :)
Hey guys, how do i check if a person has a specific role or not
Fair enough, the effort is gonna be meh
I can send u
!d discord.Member.roles
roles```
A [`list`](https://docs.python.org/3/library/stdtypes.html#list "(in Python v3.9)") of [`Role`](https://discordpy.readthedocs.io/en/stable/api.html#discord.Role "discord.Role") that the member belongs to. Note that the first element of this list is always the default [β@everyone](mailto:'%40everyone)β role.
These roles are sorted by their position in the role hierarchy.
is there any way to throw slash commands or bypass?
its roles?
and if i want to specify a number of roles?
Thats the roles they have, you can check if your role object is in that list
should i use a list or a tuple?
oh
ok thanku

@bot.event
async def on_message(message):
if message.content.startswith('1') and message.channel.id == 880542597951655936:
await message.author.send ("I have **given you** the support and the access to __[#880541760995094558](/guild/267624335836053506/channel/880541760995094558/) / [#880541781803036672](/guild/267624335836053506/channel/880541781803036672/)__")
role = discord.utils.get(message.guild.roles, name="support")
await message.author.add_roles(role)
Ignoring exception in on_message
Traceback (most recent call last):
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/client.py", line 343, in _run_event
await coro(*args, **kwargs)
File "main.py", line 42, in on_message
await message.author.add_roles(role)
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/member.py", line 777, in add_roles
await req(guild_id, user_id, role.id, reason=reason)
AttributeError: 'NoneType' object has no attribute 'id'
``` need a quick fix pls
Why do u eat too many popcorns
Damn
role is None
role is None, it couldn't find it
i did define it
Pygame or js?
I am afraid to use js because I am about to learn web development(and c#) using html css and js
And I don't want to get confused
If we want to make a bot and don't want slash commands, we can't request for message intents just to use normal commands
Discord sucks
Can somebody clarify something for me? When you make the bot command in the brackets what are you supposed to put
umm, idk 
But what does putting things there do
Ngl even after people say tutorials are bad, I learnt a lot of dpy in starting from yours, carberra, and twt's vids...
Thank you :)
You can put cmd name, alias, description, help, usage... No need to put anything if you don't need to
Thank you
Me don't even know what it is
It's a programming language
I am more familiar with Js really
Like java it's used in Android deving
Yeah ofc it is lol
!ssh
Lmao
what's ssh
Mute
!shh
β silenced current channel for 4 minute(s).
!unshh
β unsilenced current channel.
anyway... let's get back to something on-topic
Ah

I'm connecting to the discord gateway
With a bot instance?
Pls can anyone make me a resume about what is happening with Danny and discord.py?? What do I need to do for ny bot to still work??

Haha, appreciate it
anyone know how to make a on_command_completion that add 1 to a value every time a command is used and when the values reaches then it sends the message and then reset the value? i tried by making this:
commandscount = 0
@client.event
async def on_command_completion(ctx):
commandscount =+ 1
if commandscount == 10:
await ctx.send("**Tip**: prova")
commandscount - 10
member = message.author
if member.has_any_roles("Omnivert", "Extrovert", "Ambivert"):
Guys why is this giving me errors?
Someone should probably pin a message detailing D.py's future.
Also what worries me is this server's future.
discord.py is not the only channel in this server you know
This server will be fine haha
discord bots*
True.
also, it will remain relevant for anyone trying to use the api or the gateway
i doubt this channel will die
!d discord.on_command
discord.on_command(ctx)```
An event that is called when a command is found and is about to be invoked.
This event is called regardless of whether the command itself succeeds via error or completes.
This works only if the command has passed all the checks and successfully got invoked.
i've already read that, it doesn't help me
What is the difference wth discord.py
then what's the problem
Try storing the commandscount in a JSON file instead of a variable.
// commandscount.json
{
"commandscount": 0
}
import json
@client.event
async def on_command_completion(ctx):
with open("commandscount.json", "r") as f:
load = json.load(f)
load["commandscount"] += 1
with open("commandscount.json", "r") as f:
json.dump(load, f, indent=4)
commandscount = load["commandscount"]
if commandscount == 10:
await ctx.send("**Tip**: prova")
load["commandscount"] -= 10
with open("commandscount.json", "w") as f:
json.dump(load, f, indent=4)
@slate swan
Wait, I just realized a problem in your code.
Does it send the "Tip: prova"?
no, that's the problem
You have commandscount =+ 1 it should be += not =+.
And at the end you have commandscount - 10 it should be -= 10.
oh ok ill'try with that thank you

ig gotta manually connect to the ws and send http requests
Is discord.py Ending?
It has been discontinued by the original owner yes, but a fork may be created by someone.
Thats sad.
read the /topic
you have until April 2022. There's plenty of time an things arern't clear atm at what will replace d.py if anything
sorry if i disturb you but it says : io.UnsupportedOperation: not writable
Don't use a JSON file. Just fix the += and -= operations.
i tried but it doesn't recognize commandscount
wait
idk probrably it is just bugged
Try global commandscount first
@slate swan
what's the point of pinging me for no reason
Oh my bad.
got 2 new errors
No, I mean global commandscount inside the function
@commands.has_permissions(manage_messages=True)
async def clean(ctx, member: discord.Member=None, amount=None):
def check(m):
return m.author == member
if amount is None:
if member is None:
await ctx.send('Recuerda indicar de quien quieres borrar los mensajes y cuantos.', delete_after=3)
await ctx.message.delete()
return
else:
await ctx.send('Recuerda indicar el numero de mensajes que quieres eliminar.', delete_after=3)
await ctx.message.delete()
return
else:
amount = int(amount)
await ctx.send('Mensajes eliminados.', delete_after=3)
await ctx.message.delete()
for channel in ctx.guild.text_channels:
await channel.purge(check=check, limit=amount)β
Ok my clean command just clean if there arent any messages b4.
Example:
-me
+another person
-hi
+hi
+uwu
+uwu
+uwu
-stop man
+no
-ok
-!clean @+ 4
(Nothing happens)
global it in def
To register commandscount as a global variable
a
i got these errors now
without the = 0 ?
global commandscount is for python to see commandscount as the variable you already defined outside the function
global commandscount should be inside the function
?
π©
How can the bot delete his own command via reaction like here on channel?
Question is what event to use to catch the event upvote.
!e```
print("delte this")
ποΈ (oh no python here)
@copper quartz maybe pin that gist?
ctx.message refers to the message that invoked the command
Any errors?
Nop
if it's gonna be pinned i think it needs a bit more wording around it explaining that it doesnt mean immediate chaos and panic
Its on_raw_reaction_add
Or its other variant
try amount: int = None
Ok
But the problem not there I guess
Cuz it deletes if the messages are consecutive and no other messages are after them
So I guess its that
Sorry yes
I got an error of a message not found
I think is something about the check
Question: For the future of discord bots, they are going to all be using slash commands? So the prefix like ! won't be there anymore, but you can mention the bot as a prefix?
correct
There are a few ways to bypass message intents restriction and slash commands. First, Discord has mentioned in the Q&A that the bot will be able to get content of messages where they're pinged, that means that you can set your bot's prefix as your bot's mention <@bot_id>. Second, Discord has mentioned also that moderation bots that need the intents for certain features such as chat filter, or anti advertising, are good to go and will get the intents after applying.
To respond to the above. Danny will no longer be updating discord.py. It doesnβt mean the end of it like your bots will die out or anything. It means that you will need to use third party modules to interact with discord as new features come out. most likely someone will pick up the project and continue it. Danny laid some great ground work. We just need someone to pick up the torch and continue the legacy.
What happens when you get the message intent?
!pypi dislash.py is a very great package
It has buttons, slash commands, menus, and more
You get content of messages. Which means, you can still use the normal commands, since it's all about getting content of a message, and responding to it.
so you are not forced to use slash commands?
@bot.command()
async def hi(ctx):
await ctx.send("Hello")
Is basically:
@bot.event
async def on_message(message):
if message.content.lower.startswith("!hi"):
await message.channel.send("Hello")
how can I send this kind of a message?
What package are you using?
discord.py is the only matured one right?
or are there any alternatives?
There are other packages that features interactions since discord.py does not.
I suggest dislash.py
Discord components
!pypi dislash.py
heard of that. but is it the one I should use to get the job done?
Last time I used Discord Components I don't remember that they support context menus. Do they support it now?
No. Dislash.py is like a "plugin" or an "addon" to your discord.py.
Thanks a lot (sorry for ping)
no I mean can it send messages like the one I showed?
Yes, it supports slash commands.
They support interactions like that and buttons really. Never delved deep into it to learn if they had context menus. Probably not though
There is also a module name discord.ui or something for interacting with the ui potions
so you can send that type of a message using a slash command?
@client.slash_command()
async def hide(inter):
await inter.reply("This is hidden to only the author", hidden=True)
Yes, only replies to interactions can be hidden.
oh right
Wish I knew enough python, Iβd pick up the lib honestly. Just to be able to continue it for everyone
Np
I dont know if someone has read the news...but rapptz stepped back, because Discord wants that all Bots just use the Slash Commands
If you dont agree, would be super cool if you sign this Petition
https://www.change.org/p/discord-inc-don-t-require-slash-commands-for-discord-bots
Yes, the official maintainer of discord.py has announced they will be ceasing development.
What does this mean for discord.py?
It will still be usable for the foreseeable future for the features it currently supports. Any additional features that v2 beta (master branch) does not support will have to be sourced from other libraries that extend or implement the featureset you prefer.
Will someone else take over?
There is no official maintainer assigned to take over the project, however there will be and are forks and alternatives, and as time goes, things will settle into a select few choices, so feel free to ask others on preferred forks or libs. These answers will change over time, so I'll not maintain a list here.
Why is this happening?
There's an extensive writeup that I won't be pinning here, but can be found if you ask here or if you visit the official discord.py support server.
Is this the end of discord api support on Python?
Definitely not.
Please remember to keep civil when discussing anything and to avoid spreading any hearsay or abuse.
and you mean buttons and menu's by interaction?
Buttons, slash commands, menus, and I don't remember what else is there, but yes.
He changed? Last night he said 2.0 wouldnβt be released :/
did he? i'll double check then, as i can edit that part
For more information
In gist he says he shuts down immediantly. But 2.0 was still in development
then the library that is considered the best for the job is dislash I suppose
I think buttons and menus in discord.py 2.0 works quite fine
Only thing that's missing is slash commands
They do
I can't confirm that. As there might be another packages that I haven't heard about. Tho, this is the best one I've used.
it seems you failed to actually read my post in full
You mean the part where you say to look in discord.py server?
that's good enuf for me lol. btw I like your nick
the part where i explicitly state i'm not pinning that gist
Thank you! π
So this is how legends die huh
it's a clever one
π’
Question is what happens to Carl bot
BRO WHAT!?!?! DISCORD.PY IS BEING DISCONTINUED!!!!!??!?!?!?!?!?!
Time to start shilling my discord libs 
im unable to find any confirmation that he's not going to release v2. if you find one, feel free to ping me with it
HOW is no one talking about that!?!?!?!
Isn't everyone talking about that?
they are
i don't know just saw the news
can't help someone unwilling to read
The repo is archived, so he cant really get 2.0 to a release stage without committing to it more
blooodyyyy heelll!!!!!!
Time to start html
i see
hmm
No way I am going to djs
So now bots like Dyno will be using slash commands once the message intents come out in 2022?
wow so 2.0 wont be officially releasing?
Guess it's time to learn js
I cant confirm either way, but from danny himself it seems unlikely
um ig Dyno is a big bot so discord will give them messages intents, but for other bots, yeah
geeeezz
wow, bro this is just too.....
@vocal plover ive decided to just edit in a way that doesn't explicitly state it's gonna release then.
Its not based on size, rather function, discord will give bots who need access to message content that intent
so if they get message intents, they will still have to be using slash commands or...?
I think for the most part - if not entirely - dyno will go over to slash commands
there's a lot of time for that transition tbh
even if you dont need to because you have the intent, everyone else will be moving over too, which means if you dont it will be a worse user experience and people will start looking for alternatives
woow mann an entire community taking the fall cuz of this
"Therefore, effective immediately, I will be stepping down as maintainer of the project.....The code remains open, so if someone wants to fork it and work with it, then they are free to do so.However, mainline development will cease as of today"
So prefixes are gone? Only slash commands?
thank you for that.
Well, if it's used for commands probably no, but they will get messages intents, they are one of the biggest moderational bots against spams or any curse words or stuff like that. For the commands itself, discord will probably force them to use slash commands
discord.py still works 
But will soon be out of date
they should hire devs to do it for him
soon is 9 months time
please don't ping me for basic commentary
shitt man
he's a medical professional asa full time job, there's no incentive for him to hire devs and spend his own time if he doesnt feel its worthwhile
Hey @river walrus if u still want to use discord.py, u can use enhanced-dpy (that's what I think I am gonna use)
Discord is stupid to think like that
Imagine a place where all the bots use the same prefix
Yes
while I dont necessarily share his views on some of the reasons he gave, it's his time and effort being used to maintain it, and its well within his rights to be like "i dont want to deal with this anymore, its not worth it"
That's A Decent Point but you can still use it after development ceases right?
I see, thanks
Yeah but you have a selection, and than select the bot
slash commands would be a pain in servers with 3-4 bots
Well, I don't know what's gonna happen with my AI Chatbot, cz it really needs those message content in order to work
yeah of course
like imagine 3- 4 bots with the exact same command name
how messed up would that be?
like if you stick to v8/v9 it'll be available.
my prediction is that a bunch of people will fork it, and someone will make a good fork that catches on, and then life will resume as normal
Yes
But, discord.py (original) is really a huge part of my life and it's gonna be really sad without it
it's not like discord.py is gone, just that danny wont be maintaining it
sameeee
Imagine the servers with 10-20 bots
Thats a massive setback For discord bots.
hello
wdym?
deadass deal breaker to use bots anymore
Fr
no, the development of discord.py is discontinued
no?
so, there wont be any mainstream changes
No changes at all.
are you sure?
://
In danny's repo, doesnt mean someone cant fork it and have that fork become mainstream
Yup
which will happen, its too widely used not to
yeah i've seen that
true, lets just hope so
I'll just go to html
hey on the bright side if discord.py dies then my lib will become popular 
lol
so any discord.py bot/tool will stop working?
no
if there seems no hope in 2 months of time then i'm going js
send me the link
90% of questions you may have arre answered by the gist
LOL
Go to js now, and than see what will happen
the user friendly one isnt released yet, but github.com/vcokltfre/corded allows for very low level access to the api and little else
naah, i dont wanna loose hope this early
Well, for me... I will be using enhanced-dpy cz technically, it's just discord.py with some added features
add voice then we will talk
I have 15,273 messages here. All of them now for nothing
this is an excuse for me to learn a new language
enhanced-dpy is getting 2.0 soon
discord.py isnt dead lol
Hey @sweet ether! Same for me. I am also not thinking to move away from bot making!
how do i check mine?
im thinking Discord.GO maybe Discord.rst
rst is reStructuredText, do you maybe mean twilight-rs or serenity?
Hey @vocal plover, is @unkempt canyon accepting PRs for adding more modules to the docs command?
yeahh but if push comes to shove then discord.js i'm going
Top right the is a search bar, press from and in and enter what needed
Discord.js is the strongest tho
no?
no clue
Nope. U don't need to. You can use enhanced-dpy
Ah, ok. Sorry for the ping :c
Discord.Go is faster If you need speed
1.9k lmao
I mean it is coded in the language that discord is made in
oh.
yeah i know, i guess we'll see in the future
Me going to look for a good non-toxic html server -_-
i know html
im taking a class for it rn
Well, that's what I'mma use haha
Was hoping for discord.cpp eventually tbh
why do you keep saying html?
you cant make a bot in html
yeahh
Anarchy C# is fast for discord bots
no not officially there is a 3rd party lib though 
Aight thanks
Which dlib is fastest tho
first party development is no longer happening 
yeah i do know that, but just seemed a little funny that dpy is abandoning us in a time of need such as this
probably something like serenity, twilight, or libdiscord
no clue
it all makes sense now
thats why i said 3rd 
Lmao yes
I made an issue asking for it to be renamed so discussions of the discord api and other libs in general could be discussed, there was nothing to do with d.py being unmaintained
well, whatever it maybe
oooh, but are there any other libs for d bots dev?
any other's that people genuinely use
well discord.py is the defacto right now, but I assume in the coming weeks/months that other libs will get more popular
yeahh, it's gonna be chaotic as hell
dpy kept everything in order, maintaining a standard for everyone, but i guess that'll change pretty soon
though if people do fork it then things might not be as bad
but chaos, nonetheless
there's no chaos
first party development abandonment happens with a lot of open source software
chaos is only there if you create it, and I'd advise not doing that to prevent, well, chaos
and one of OSS's greatest virtues is being able to be continued by anyone with knowledge
just a heads up, it's this type of speculative assumptions that are a danger to spreading misinformation, so please properly evaluate conclusions you come to or rephrase it as a question to actually confirm things
personally, I'm quitting the discord bot development scene indefinitely, as I disagree with their current plans and actions through these past years
we would have to shift to other langs to make discord bots
okay now?
all good, it wasn't major enough to actually cause a problem, but it's the behaviour i figured would be good to point out for future that's all. thanks for listening tho
oof
there's multiple forks that already do
async def perms_list(self,ctx,rola):
db = sqlite3.connect("perms.db")
curosor = db.cursor()
curosor.execute("SELECT * FROM perms WHERE guild_id = ? AND rola = ?", (ctx.guild.id,rola.id,))
wynik = curosor.fetchall()
if not wynik:
await perms_error(self,ctx,rola)
else:
for perms in wynik:
if perms[1] == "allow":
allow = "\n".join([f"{perms[1]}"for perms in wynik])
elif perms[1] == "deny":
Denied = "\n".join([f"{perms[1]}"for perms in wynik])
embed = discord.Embed(title="",description=f"**Permissions for {rola.mention}**",color=ctx.author.top_role.color)
embed.set_author(name=f"{ctx.author} Permss",icon_url=ctx.author.avatar_url)
embed.set_thumbnail(url=ctx.author.avatar_url)
embed.set_footer(text="Permissions list")
embed.add_field(name="Allowd Commands",value=f"{allow}",inline=False)
embed.add_field(name="Denied Commands",value=f"{Denied}",inline=False)
return await ctx.send(embed=embed)``` How to do if tabel [1] in db have got allow it will print it in allow if deny it will print it in deny
eh will slash commands be the only feature in discord bots on april 2022, like i can still read message event right?
really?
yep, like enhanced-discord.py, a fork that's been mentioned here a few times already
can't say the name is good tho lol
??
lets hope for the best
if i can read message i can still make chat commands lol
interesting
whats the next discord.py
What about a dpy pydis fork?
enhanced-dpy for me
my library 
π
whats that
New question:
How can I go from βοΈ to \βοΈ and vice versa?
So something like:
tostring(βοΈ) -> point_up
to_emoji("point_up") -> βοΈ
TY
Hey Alec, I was seeing the source code of your lib. I was seeing the GatewayClient, but it doesn't have any start method. Can u explain what's happening in it?
corded/ws/client.py lines 70 to 81
async def start(self) -> None:
gateway: GetGatewayBot = await self.http.get_gateway_bot()
limit: SessionStartLimit = gateway.session_start_limit
limiter = Ratelimiter(limit.max_concurrency, 5, self.loop)
for shard in self.shards:
await limiter.wait()
self.loop.create_task(shard.connect())
while True:
await sleep(0)```
although corded isnt the lib im working on currently
Huh?
I'm trying to make a higher level one that can actually be an alternative to discord.py
which i started a few weeks back funnily enough
not yet
Oh, ok
I want to get to a basic release state first
Will it have the same syntax as dpy?
So you predicted this?
as soon as i can connect to the gateway I'll open it
Cool
no i just wasnt a massive fan of d.py already
that's super cool bro
y?
Well the only thing I can't understand is how do bots connect to the gateaway and send the list of commands and stuff
just does things in a way I dont like that much, often internally
for users i think its great - mostly
what will you change compared to dpy
I can't remember all of the changes off the top of my head, but when I release I'll put a list of features and differences
ok
I should learn about design before making my own lib π
u mean the code quality and stuff?
maintainability?
partially
more likely just impl opinion
https://github.com/Rapptz/discord.py
It's archived already
there are some really convoluted and weird parts of discord.py that i'd like to remove, but thats abolsutely my opinion on it, not a fact that it's messy or whatever
So will my program with discord.py continue to work?
wierd as in?
yes
until it doesn't right
dpy is quite clean tbh. but i agree that there's a large amount of implementatin details i don't agree with either. but i think we all kinda get to that point after using a lib for a long time
things like calling sorted() on the guild role list every time you access it
yes it will but not for long, like if you need your bot to function throughout then make it on slash commands

ineffieciencies I suppose
yeah
what about type hints?
I dislike magical typehints
Can you send me link to your bot 
also I'm trying to make it as easy as possible to understand what's going on - in discord.py the http client is a bit hard to read, so I'm trying to make it very readable
nope
Ahh ok but what even the basic parts of discord.py like async commands and functions, will they stop working?
speaking of importance of reading, guess i failed to
thx anyway
Whyπ
Me and capitalism started working on our own wrapper a few days ago....
Also, is there a slash command wrapper anywhere?
which often tends to directly propotional to the maintainability
and your code wont be getting any updates either, like the 2.0 does have the threads but if discord releases anything such in the future then you'll have to add functionality for that yourself
i made a crappy wrapper too
For discord.py
You want a wrapper for a wrapper?
No, just a wrapper sorry

the better readability, the better maintainbility
yeah, the entire bot will stop working, you will have to rewrite it using another library that supports slash commands, and has different methods for everything so your current code won't work
oh
!pypi dislash
LMAO
mfg
!pypi dislash.py
oops
dislawhut
Ok. How long until everything βbreaksβ ?
Basically you got the bare discord API and it can do a lot but takes long to code so they made that.
just read the gist man
april 2022
so re-read it
how does it 'break'
your bot will stop seeing messages
discord decides it
every discord decision that changes the api will bring doom to dpy
noted
Took awhile.
all hail websocket
How about wait_for tough?
discord doesn't want the bot to get messages, only slash commands
man
Seems fair.
so limitative
so they're basically killing prefixes 
nobody asked, but I'm switching to another platform entirely
What? Skype?
Is discord.py being discontinued
yes
WTF WHY
back to irc
please check the pins
not advertising, but vector.io
broo why do they even think sooo much about privacy!! like what!!!! this is just discord no one shares their card details here we share memes!!!!
frustration in the owners life, disagreement with the latest decisions done by discord staff regarding the API
we should make opensource discord server that uses the current api
I was thinking about making my own wrapper anyways.
You guys know that making telegram bots is a thing π
I have a telegram bot.
if you're willing to put up with the bullshit discord is forcing down everyone's throat, I honestly envy you.
Ohh, I never liked Danny (creator of dpy probably, he banned me from this server cuz i was slightly annoying)
I'm doing that too 
do you have a invite for a large friendly python community in telegram?
Can't even find it lool
Atleast discord.py will still be supported as discord api for python
I think I was in one.
There is one. Just check the Telegram API wrapper.
But to be fair most things are already in discord.py so you can just fork it and edit it.
element.io? forgot
!pypi telegram.py
I have nothing but respect for him.
Over these past years he never accepted donations or was even offered to begin with. Did a sizeable cut of the work alone, managed multiple discord servers regarding development and had to work a stressful job in the medical field
π
@vocal plover are you adding typehints to your wrapper?
they're a company that wants to make money one day. obviously they have to care about privacy lol
its his hobby though
without accepting or asking for any donations
I really hope that python server would take discord.py and maintain it
Telegram had slash commands and buttons before Discord did.
the domain name is available for sale
I like typehints more than @bitter halo
(ok almost as much as fisher because fisher is better than typehints, but typehints are awesome)
We love you Danny
element.io? forgot
So just because it's his hobby we should look over his work 
a hobby can still be extremely taxing to work with.
arghhhhh!!!!! it's called imagine a place cuz you can only imagine it
irc had slash commands 20+ years ago it's not a new concept
because there are countless good developers here than can improve the library
yeah respect his work
Hello panda
Hello
lol. whos that btw π₯²
If discord cares they would have done it.
slash commands are cool, the bad part is that the bot can only see the slash commands and do nothing else
I mean i could prob make my own wrapper but it'd just take awhile.. lol
fisher is friend, not food A staff member here, and one of my friends
not as hard as imagined
it's not wrappable
The hard bit of making an api wrapper is implementing all the tedious but easy bits, not the actual http/gateway logic, which is about a day's work
yeah
discord won't
(copy paste copy paste)
Yeah
discord is already maintaining discord API
you can't wrap the new api in a way that makes old bots work, so everybody will have to rewrite all bots anyway
so they won't take this burden
if everyone is going to make a wrapper, the energy will be so spreaded out. if we concentrate on one wrapper. it's turn out better than ever
i guess i'll fork it and make changes to it that i feel that i actully need
But to be honest Discord did screw the bot devs a bit lol
I mean imagine Python is a pretty big community, imagine what will happen to djs lol
its stuff like being willing to spend hour upon hour writing async def get_gateway_bot(self): ...
Ohhh
it was my first advanced lib in python
yeah first they take away the verified bot dev badge and now this
samee
Djs has slash commands implemented so
I dont agree with some of danny's choices with discord.py, but yeah I have a huge amount of respect for the amount of work he put into it for ~6 years
the badge thing was fair
The verified badge thing was a good thing that they removed it imo
they golden
whyyyyyyy
It's not a competition.
yeah
it does feel good though doesn't it
the badge just ended with elitism and "i wont use your bot unless you have the badge" stuff
people made bad bots that were abandoned later just for the the badge
not good for a bot ecosystem
They could've changed the requirements instead of removing it.
I mean you would've gotten the badge around 200 servers that's just nothing these days.
^
oooohhh
Not without downloading them all 
Some are pretty bad though
pip install every-discord-package-ever
https://discord.com/developers/docs/topics/community-resources not a complete list
Integrate your service with Discord β whether it's a bot or a game or whatever your wildest imagination can come up with.
Integrate your service with Discord β whether it's a bot or a game or whatever your wildest imagination can come up with.
that timing lmao
I might make my wrapper in java anyways π
is JDA good?
the what
its not bad, lets put it that way
decent
Yess, I'm using it...it even got buttons
oh nice
alright
A wrapper for nerds.
How so?
Just kidding. Java is a cool language.
!pypi disco is a similar library, but not async.
until 2022 ,right?
from disco.bot import Bot, Plugin
class SimplePlugin(Plugin):
# Plugins provide an easy interface for listening to Discord events
@Plugin.listen('ChannelCreate')
def on_channel_create(self, event):
event.channel.send_message('Woah, a new channel huh!')
# They also provide an easy-to-use command component
@Plugin.command('ping')
def on_ping_command(self, event):
event.msg.reply('Pong!')
# Which includes command argument parsing
@Plugin.command('echo', '<content:str...>')
def on_echo_command(self, event, content):
event.msg.reply(content)
forever prob
No almost instantly
hmm
danny said it will not continue it because discord forcing slash commands, and he don't like this
are you the developer of spoticord?
ngl, pretty good
now i need to find a discord.py fork mantained or fork my own and keep updating it.. pain
@echo jolt even if you do, you have to rewrite the bot too
yea
if this announcement had only come out 2 weeks later i'd have had an alternative to offer people lmao
What are you planning...
o what is it about
you can't maintain a fork that will keep existing bots working. You also have to rewrite the bot to use the new slash commands method
if this change really goes through (and no reason to think it won't), all discord.py bots will have to be rewritten, even if discord.py itself was to support the new method
For now a really good base and dashboard. But since discord.py is stopping i might move my wrapper plan a few months earlier than expected lol
ah
it's a music bot?
It does not have music no just the base and dashboard
well there is an another bot with the same name
dashboard?
webbrowser
huh.
hey what is fork and how can i make it?
? What is the name of the bot
presumably same name
You just go to github and fork a project
fork means?
spoticord
My bot name is Spotipy since my original plan was to make a lyrics bot using the spotify api and lyrics sites.
ah
but again, if discord trying to push / cmds, why would discord py gets f[redacted] upped?
I've found this petition: https://chng.it/wHqVwvCPRn
yes
bruh petitions won't change a thing
but not if someone doesn't fork it and keep updating in relation of discord api updates
Since it also removes some other things by 2022 and alters a lot. Almost everyone dislikes it.
i see
I know, but I just found it. It may at least get the attention of the Discord staff.
wont changing api version number solves the issue?
oh
what is it?
Uhhmmm doesn't work like that.
discord.py has not ended, its no longer maintained by danny
I'm not gonna nove to Slash commands anyway lol, even if my bot Is in more than 600 server
so my bot will still work ?
it hasn't ended, it's just lost a little hope but it can go on if someone can keep their fork updated
if they removed gateway access
Yes
wait thats dumb
You have no choice in 2022 since it won't accept messages anymore and the bot cannot read them.
discord said that?
Your bot won't work then. Unless you get the message intents.
I already have the message intent
What? How? It's not out yet.
lol
Do classes refer to other classes like can i do .commands.context.message.author.name ?
Pretty sure in 2022 no bot can read message even with intents.
all those intents stuff, ugh.
What's the use of intents?
time to move platform
What happened? Can someone please link a discord announcement?
what is intent
how can i add slash commands then ?
similar to permission
Ah my bad i tought It was member intent
Slash commands are horrible in my opinion
Ah I've read that, but this?
crinj
And how can someone use a help command if every bot you have in your server uses slash commands
yess samee
@untold token hoi
while it is not like the worst idea, but they should really give bot devs choices to use whatever they want
i dont know why discord is adding slash commands , i like normal text
Same
It Is much better
change the name baba
ello
the person would have to use their keyboard to choose the bot who's help command they want
I'm looking at the github and their Discord, seems like some contributors also stopped.
That's horrible, isn't It?
Essentially, this is a unanimous decision that the discord.py project will be ending.
@slate swan
Why?
you can do other names
imagine in 2025 discord remove the feature of talking through text and we can only talk through voice
25% of this screenshot is already banned so
so it will be unique cmd
A
make an on_message event which sends help when the bot is mentioned
and it always bugged
self botting is the onliest solution π
it's practical , and messages can be read if the bot is mentioned
Are slash commands implemented in discord.py?
Not for now
Not yet i think.
that's one of the main reason why discord.py is closing
Then how TF can i use slash commands on my python bot
Lol
But seeming that some wrappers take 2k+ lines it might never come to discord.py
guys which pi library shall i use
Groovy. 
you meant this cmd like /About
dislash.
use a 3rd party
!PyPi dislash.py
where tho?
guys suggest me a discord api library
I Hope that someone Will Copy discord.py and continue to develope It
is that a python module
@slate swan i tagged wrong sorry
Yes
and is it similar to dpy
can u show a bit of code
It has only interactions.
similar codes?
Is It complicated to switch to Slash commands?
@dapper cobalt wrong pypi link, you want https://pypi.org/project/disco-py/
Oh my bad.
depends on the type of command you have ig 
What's your problem
you meant the prefix right?
No, the slash commands
like?
But what if i change the bot prefix to /
discord.py's github now This repository has been archived by the owner. It is now read-only. π³
Bots can read all messages sent so it is a privacy risk. So Discord wants bots to use slash commands only.
that is what i am taking about
does this slash cmd
I think It Is not considered as a slash command
if all your bot does is execute commands, then it can work with slash commands. You still have to rewrite it though
then
i am trying to put them in but i have this probl
I came to know discord.py stops develop what is future now
How about they fix that if you login to a dashboard bots like mee6 get your email adress. That's something they should fix.
it is blank
is that problem
some people did forks and do their own dicsord.py, some people switch to js etc etc.
Doesn't crash 
ok
no its not considered a slash command thats just u changing the prefix
I think i'm going to switch to js
How to fork
IDK js
anyone made prominent forks yet?
suggest me a api library of another language that has slash commands
im lazy to learn js lol
It has been 12 hours lool give it some time.
These libraries have slash commands implemented
it's been more than 23 mins lol
it's been several hours
oh yeah
How to fork
Still
guys suggest me a api library
what are you talking about?
Of the discontinuation of discord.py
is this for me
damn
people are making out like discord is the bad guy
they're doing it for security/privacy reasons i dont see how thats wrong tbh
it's sad
i think not
How to fork discord.py
Go to https://github.com/Rapptz/discord.py and click the button
click the fork button lol
Most people are not, there are some out there.
No there is commands only for bots now.
guys suggest me a discord api library
its not as if the library is disappearing. You'll be able to pip install discord.py for ages
discord.js / eris
discord.js / JDA
guys which is the easiest api library after dpy that has slash cmds
what's JDA?
java
There will be enough forks. The question is, who takes over the discord.py name on pypi.
mmh okay
java discord api
Probably no one if the library won't be taken over for security reasons.
anyone?
Yea
nobody; The owner asked the people he trusts and nobody wants to take over so it will just die
I don't think that'll happen, since they'll want discord.py == discord.py code and as the maintainer has said there are no sanctioned forks that anyone wanted to make
is it long to learn javascript if I already know python?
I see
Yes.
sad
anyone?
I've coded in c# and php so i should be fine 
IDK
probably discord.js
dislash
which language is it written in
i hate you.......
i dont really know which is the easiest
Note that probably all libraries ATM act exactly like discord.py currently, and this current method will completely break in April next year unless you make sure to only use sanctioned stuff by the discord devs
IE if you wrote your bot in discord.js similar to how you wrote your bot in discord.py, it will break next year anyway just the same
just keep scrolling down and you will see it
python
HELLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLll




