#discord-bots

1 messages · Page 1109 of 1

cloud cairn
#

Soooo? ./images?

#

oh wait.. file?

#

im so confused

heady sluice
#

we see it

#

await channel.send(file=discord.File('./images/'+msg.content.split()[1]))

#

note, if the person only types one word, you get a list index out of range error

#

on this if statement

cloud cairn
heady sluice
#

I'm looking at how the commands get passed the arguments in the dpy source code but damn

#

there are 4x as many comments as code

#

this might be it

#

nop

heady sluice
dusky pine
#

me rn performing !image ../main.py ../.env

#

is it because only 1 arg

cloud cairn
#

I have no idea how it works but it does

dusky pine
#

oo

cloud cairn
#

Thanks alot

unkempt canyonBOT
#

discord/ext/commands/core.py line 798

async def _parse_arguments(self, ctx: Context[BotT]) -> None:```
heady sluice
#

what about

if msg.content.startswith("!image"):
    image = None if len(msg.content.split()) < 2 else msg.content.split()[1]
    if image in os.listdir("./images"):
        await message.channel.send(file=discord.File(f"./images/{image}"))
    else:
        #image not found
heady sluice
#

it looks complicated af

#

yeah

#

just what is this

warped mirage
#

Can someone help me make a slash command please

heady sluice
#

I'd do this shit with a for loop

#

and splits

regal pulsar
#

bold of you to assume they use dpy

warped mirage
#

Well I need help making a slash command in 2.0 , I want it to have 2 required options , category1: and category2: when they are finished the send the command and it says your information has successfully been sent to the owner , then the bot DMs you the category1 and category2 , I am on 2.0

#

Idk I have never made one , I’m new to 2.0

#

commands.Bot

#

I already have some stuff with my bot

#

But idk how to make slash lol

#

Idk how lol

#

Ye

#

So make a new normal command?

#

I’m confused man sorry

warped mirage
tacit token
#

How can i make a ban command what dont delete the message

warped mirage
#

So what’s the first thing I do ? I’m confused l

dusky pine
regal pulsar
#

lmao

warped mirage
#

So @.client.command() ?

tacit token
#

What

#

member.ban(reason=reason, message_delete=0)

#

Or something

slate swan
#

the message of the banned user gets deleted by default

slate swan
#

I've seen people reporting it doesn't work often

tacit token
#

And how

#

Ok ty

warped mirage
#

Not yet

#

Ik but client works fine for me

#

And I only need the bot I’m making atm just for a slash command I’m using it for 1 thing

slate swan
#

imao what if i detect alts 💀

dusky pine
slate swan
#

how to make a sql db xd

warped mirage
#

Yes guild specific , much better

lyric apex
slate swan
#

nah it was a joke im learning sql

lyric apex
#

Ohk

slate swan
#

like the cut sign

lyric apex
slate swan
#

hi

lyric apex
#

zzTh_QtCat But i don't think the channel is right for asking it

heady sluice
heady sluice
#

ew

warped mirage
#

I don’t see the YOUR_GUILD_ID

slate swan
#

yikes

warped mirage
#

Ok so I paste then then What?

#

Should I grab that code at the top and test the command

#
@client.tree.command()
async def your_slash_command(interaction: discord.Interaction):
    await interaction.response.send_message("test")
#

This.

#

Ok sync is at the top and the command below ? Or the orders don’t matter

cloud cairn
#

gigacat or meh(brain="huge", looks=model) i could use some help again :/

slate swan
#

any way to implement invenotry command with json

warped mirage
#

Ok

slate swan
#

I apologize but I'm in an important meeting rn (and sorry for the late reply)

#

like no offence using db is better, but for now i want to use json

slate swan
#

Yes

warped mirage
#

is it meant to look like this?

cloud cairn
#

How do i make it so if i only type !image it will send a list of every image in that directory

@client.event
async def on_message(msg):
    if msg.content.startswith("!image"):
        image = None if len(msg.content.split()) < 2 else msg.content.split()[1]
        if image in os.listdir("./images"):
            embed=discord.Embed(title=image, url="", description="Loading...", color=0x4ccfb2)
            await channel.send(embed=embed)
            await channel.send(file=discord.File(f"./images/{image}"))
    else:
        return
        #image not found
slate swan
#

when the fuck did i say that

warped mirage
#

the _sync looks kinda dark

slate swan
#

i just asked how to implement it in json-

#

there's problem in it i-

lyric apex
warped mirage
#

I ran sync and nothing happened

slate swan
#

so there's no way of implementing invenotry in json

#

sed very sed :blobpain:

cloud cairn
#

So like this after "else:" ??

        embed=discord.Embed(title="Images In ./images", url="", description=os.listdir("./images").replace(',', ' '), color=0x4ccfb2)
        await channel.send(embed=embed)
lyric apex
#

How to split the embed content

warped mirage
#

Ok

spring flax
cloud cairn
spring flax
#

What happens when you try? You must be doing something wrong. If you provide the error we can help

cloud cairn
#

that doesn't send anything when executing !image

#
    if msg.content.startswith("!image"):
        image = None if len(msg.content.split()) < 2 else msg.content.split()[1]
        if image in os.listdir("./images"):
            embed=discord.Embed(title=image, url="", description="Loading...", color=0x4ccfb2)
            await channel.send(embed=embed)
            await channel.send(file=discord.File(f"./images/{image}"))
    else:
            files = [discord.File(f"./images/{image}") for image in os.listdir("./images")]
            await channel.send(files=files)
spring flax
#

you did not even define channel

#

i saw the code

#

look at the attributes of the text channel class below and use what you want in the embed

#

!d discord.TextChannel

unkempt canyonBOT
#

class discord.TextChannel```
Represents a Discord guild text channel.

x == y Checks if two channels are equal.

x != y Checks if two channels are not equal.

hash(x) Returns the channel’s hash.

str(x) Returns the channel’s name.
spring flax
cloud cairn
#
@client.event
async def on_message(msg):
    channel = msg.channel
    if msg.content.startswith("!image"):
        image = None if len(msg.content.split()) < 2 else msg.content.split()[1]
        if image in os.listdir("./images"):
            embed=discord.Embed(title=image, url="", description="Loading...", color=0x4ccfb2)
            await channel.send(embed=embed)
            await channel.send(file=discord.File(f"./images/{image}"))
        else:
            files = [discord.File(f"./images/{image}") for image in os.listdir("./images")]
            await msg.channel.send(files=files)

What?

#

okok 1 sec

spring flax
#

again, I recommend you to use the command extension instead of on_message event. It's an easy conversion

cloud cairn
#

sooo that is a problem damn

#

yeah so if there is more then 10 it will send more messages

warped mirage
#

hmm my command doesnt seem to show

#

and i did to from discord import app_commands

#

so from discord import ...?

cloud cairn
#

ok im gonna try

round hamlet
#

Hi

warped mirage
#

my command still hasnt loaded

round hamlet
#

I need a help with my python discord bot

#
import discord

client = discord.Client()
variavel = "!"
@client.event
async def on_ready():
   return

@client.event
async def on_message(message):
    content = message.content
    channel = message.channel
    
    if content == variavel + "help":
       await channel.send(":emoji_2: Olá, me chamo Nexux, sou o bot oficial do servidor Several Operations, sirvo para auxiliar todos os moderadores e administradores a controlarem o servidor!")
cloud cairn
#

wait does this send the whole image or just the name?

files = [discord.File(f"./images/{image}") for image in os.listdir("./images")]
await msg.channel.send(files=files)
cloud cairn
#

that could be something like this await msg.channel.send('os.listdir("./images")')

#

lmaoo

#

it just spammed me images lol

lyric apex
#

New await defined as aawait thank you @slate swan

#

Read

cloud cairn
#

yeah i saw the typo aawait

#

lol

lyric apex
#

But who cares

cloud cairn
#

im sorry :(

#

Yes it works

#

oh yeah btw do you know how to send a image using embed, i cant figure out how it works

lyric apex
#

!d discord.File

unkempt canyonBOT
#

class discord.File(fp, filename=None, *, spoiler=..., description=None)```
A parameter object used for [`abc.Messageable.send()`](https://discordpy.readthedocs.io/en/latest/api.html#discord.abc.Messageable.send "discord.abc.Messageable.send") for sending file objects.

Note

File objects are single use and are not meant to be reused in multiple [`abc.Messageable.send()`](https://discordpy.readthedocs.io/en/latest/api.html#discord.abc.Messageable.send "discord.abc.Messageable.send")s.
lyric apex
#

Exists

unkempt canyonBOT
#

class discord.Embed(*, colour=None, color=None, title=None, type='rich', url=None, description=None, timestamp=None)```
Represents a Discord embed.

len(x) Returns the total size of the embed. Useful for checking if it’s within the 6000 character limit.

bool(b) Returns whether the embed has any data set.

New in version 2.0.

For ease of use, all parameters that expect a [`str`](https://docs.python.org/3/library/stdtypes.html#str "(in Python v3.10)") are implicitly casted to [`str`](https://docs.python.org/3/library/stdtypes.html#str "(in Python v3.10)") for you.

Changed in version 2.0: `Embed.Empty` has been removed in favour of `None`.
lyric apex
#

Its an Attachments as i know or maybe i am dumb

cloud cairn
#

sooooo set_image=discord.File("image")

lyric apex
#

What about converting the files to attachment?

cloud cairn
#

well i don't use url :/

#

local images

#

what?

lyric apex
#

So dumb of me

#

You can try something like this

#

Just use fp

#

Why not it should

lyric apex
#

Look await ctx.reply

#

The file sent through the bot converts to attachment

spring flax
#

embed.set_image only supports http/https. You have to pass a URL (string)

lyric apex
#

It is in the embed only

lyric apex
spring flax
#

not sure what your code is

#

why messable.send

#

messagable*

lyric apex
#

Seems like typo

#

He is using event

#

||Maybe not needed||

spring flax
#

ah

lyric apex
#

He may now learn something new good idea

cloud cairn
#
            embed=discord.Embed(title=image, url="", description="Loading...", color=0x4ccfb2)
            await channel.send(embed=embed)
            await channel.send(file=discord.File(f"./images/{image}"))
#

what?

#

how... what?

warped mirage
#

No

lyric apex
#

Seems like you reached at starting point again

lyric apex
cloud cairn
warped mirage
#

Btw I invited the bot with application commands so I know the permissions are correct!

lyric apex
#

Local File To Attachment

cloud cairn
#

well it didn't like that 0_0

lyric apex
warped mirage
#

No

cloud cairn
#

oh im dumb

slim heart
slate swan
#

🥲

slim heart
#

im using railway.app

lyric apex
slim heart
#

any suggestion?

lyric apex
slim heart
#

good idea

cloud cairn
# lyric apex Show where you defined embed = ..
            embed=discord.Embed(title=image, url="", description="Loading...", color=0x4ccfb2)
            f = discord.File(f"./images/{image}", filename="image.png")
            embed = discord.Embed(...)
            embed.set_image(url="attachment://image.png")
            await channel.send(file=f, embed=embed)

like that?

slim heart
lyric apex
buoyant igloo
#

Replit hacker edition or whatever it’s called is gud for hosting

#

u have option to have always on

slim heart
#

why is replit bad

slate swan
cloud cairn
slim heart
#

i just realised that yesterday so i dont use it anymore

slate swan
#

Also ur files aren't safe anyone can see them, tho u can secure tokens and all

paper sluice
#

@slim heart ^

cloud cairn
# cloud cairn
            embed=discord.Embed(title=image, description="Loading...", color=0x4ccfb2)
            f = discord.File(f"./images/{image}", filename="image.png")
            embed = discord.Embed(...)
            embed.set_image(url="attachment://image.png")
            await channel.send(file=f, embed=embed)
lyric apex
#
            f = discord.File(f"./images/{image}", filename="image.png")
            embed = discord.Embed()
            embed.set_image(url="attachment://image.png")
            await channel.send(file=f, embed=embed) ```
cloud cairn
#

I did?

slate swan
lyric apex
paper sluice
lyric apex
#

I didn't saw it firstly

cloud cairn
lyric apex
unkempt canyonBOT
#

class discord.Embed(*, colour=None, color=None, title=None, type='rich', url=None, description=None, timestamp=None)```
Represents a Discord embed.

len(x) Returns the total size of the embed. Useful for checking if it’s within the 6000 character limit.

bool(b) Returns whether the embed has any data set.

New in version 2.0.

For ease of use, all parameters that expect a [`str`](https://docs.python.org/3/library/stdtypes.html#str "(in Python v3.10)") are implicitly casted to [`str`](https://docs.python.org/3/library/stdtypes.html#str "(in Python v3.10)") for you.

Changed in version 2.0: `Embed.Empty` has been removed in favour of `None`.
lyric apex
#

Pass the title keyword

#
embed = discord.Embed(title=image)```
cloud cairn
#

ok

slate swan
lyric apex
#

He wants title as his image name

#

Heya

slate swan
#

Hey 👋

#

Bot diving?

lyric apex
#

~Deving~

slate swan
#

Deving

lyric apex
#

~So~

#

Replit

slate swan
#

💀

lyric apex
#

Lemmie delete my discord

slate swan
#

Alr

lyric apex
slate swan
#

Can u show full traceback

#

faster?

lyric apex
#

WoW

slate swan
#

you mean easier?

#

U said faster

slate swan
#

bruh

#

Easier u mean

lyric apex
#

Getting started

slate swan
#

you just test out your bot and then deploy it to your vps lol

#

Leme find raven's paragraph real quick

lyric apex
slate swan
#

@slate swan

#

Shit I pinged raven

lyric apex
#

||So what do you think you are on replit for||

paper sluice
lyric apex
slate swan
paper sluice
slate swan
lyric apex
slate swan
#

Ig they hack nasa

#

With html

paper sluice
lyric apex
#

Oh god

#

I meant if you have vps why are using replit

slate swan
#

Ded chat 😔

lyric apex
#

Professional heckur

#

Oh

#

U didn't show the full traceback

shrewd apex
#

thats always the problem

lyric apex
#

Sad lyf

shrewd apex
#

i just killed the chat😳

slate swan
#

by pinging random users

lyric apex
slate swan
slate swan
#

😐

slate swan
paper sluice
#

dances on the grave

slim spoke
#

hey, I need help with choosing permissions for my bot. can someone join my testing server and help me with that?

#

tried few combinations but I didn't get it

slate swan
#

you would need to test that yourself, so you know which permissions should/would be used

warped mirage
#

Nope

slate swan
lyric apex
slate swan
#

kek

haughty nova
#
    embed = discord.Embed(title = "Giveaway!", description = f"{prize}", color = ctx.author.color)

how do you do so that its not the authors color and it's a color i can choose?

warped mirage
slate swan
slate swan
#

imagine

shrewd apex
#

gives some inbuilt colors

slate swan
#

"colour i choose"

lyric apex
haughty nova
#

is there a website with all discord color commands?

slate swan
#

Codes*

shrewd apex
#

ur question should be website with all colour hexcodes

haughty nova
#

like in mincraft its &4 for red

#

yeah

lyric apex
shrewd apex
#

yeah so go online type colour hexvalues there are plenty of websites which offer those services

haughty nova
#

thanks

slate swan
paper sluice
slate swan
haughty nova
#
embed = discord.Embed(title = "Giveaway!", description = f"{prize}", color = 0x#7289DA)```
why is it a problem "(" was not closed ?
lyric apex
warped mirage
haughty nova
haughty nova
slate swan
#

👀

shrewd apex
#
embed = discord.Embed(title = "Giveaway!", description = f"{prize}", color = 0x7289DA)
slate swan
paper sluice
# haughty nova ?

# makes a comment, anything in front of that is ignored by the compiler

haughty nova
#

ahh thank you

paper sluice
lyric apex
#

Ryuga

paper sluice
lyric apex
shrewd apex
slim spoke
cerulean folio
#
if ctx.message.attachments:
  print('There's an attachement in this message')

This doesn't work for some reason, without returning an error. Someone might help me? :D

slate swan
lyric apex
shrewd apex
#

"There's an attachement in this message"

slim spoke
slate swan
#

Oh

slate swan
slim spoke
slate swan
slate swan
slim spoke
#

I wanted to use random colors so hexa was hard for me

#

where in rgb I just made 3 random numbers

lyric apex
slate swan
unkempt canyonBOT
#
Not likely.

No documentation found for the requested symbol.

slate swan
#

!d discord.Colour.random 🤡

unkempt canyonBOT
#

classmethod random(*, seed=None)```
A factory method that returns a [`Colour`](https://discordpy.readthedocs.io/en/latest/api.html#discord.Colour "discord.Colour") with a random hue.

Note

The random algorithm works by choosing a colour with a random hue but with maxed out saturation and value.

New in version 1.6.
slate swan
#

uh

#

wtf

#

i hate this thing lmao

slim spoke
#

xd

#

good to know

shrewd apex
cerulean folio
lyric apex
#

Imagine - Using hard ways for easier things

warped mirage
slate swan
paper sluice
shrewd apex
cerulean folio
#

like, if list: is False when the list is empty right?? :o

slate swan
slate swan
cerulean folio
cerulean folio
#

so that condition somehow isn't working :o

lyric apex
paper sluice
shrewd apex
shrewd apex
#

mhm but its still good to have a color dict

lyric apex
slate swan
cerulean folio
#

Basically I coded a while true loop that checks the answer and returns an error, and rechecks again.

elif urls or ctx.message.attachments:
      await ctx.send('Images aren\'t allowed in reasons, keep that for later.')
      continue

And I wanna make sure there isn't any url or image in the message with this.
But it isn't even entering that condition when I write an empty message with an attachment :o

shrewd apex
#

is this an on message event?

paper sluice
cerulean folio
#

mmmh no it's a @bot.command()

cerulean folio
lyric apex
cerulean folio
shrewd apex
#

if its a bot command how du send an empty message with an attachment

cerulean folio
#

Here's the whole function:

async def select_reason(ctx, bot):
  print(ctx.message.attachments)
  while True:
    await ctx.send(bot_message)
    def check(m):
      return m.author == ctx.author
    msg = await bot.wait_for('message', check=check)
    urls = [x.group() for x in re.finditer(r'{0}'.format(links_regex), msg.content, re.S | re.I |  re.M)]
    if msg.content.lower() == cancel:
      return False
    elif msg.content.lower() == 'n':
      return None
    elif urls or ctx.message.attachments:
      await ctx.send('Images aren\'t allowed in reasons, keep that for later.')
      continue
    elif len(msg.content) > 1999:
      await ctx.send('Message is too long. Max lenght should be 2000 characters.')
      continue
    else:
      return msg.content
#

So you get the whole process 😊

shrewd apex
#

shouldnt it be <prefix><command_name> attachment

lyric apex
#

You are trying to track message simply use on_message

shrewd apex
#

also why pass bot in parameter?

cerulean folio
#

I'm checking the wrong message indeed !

#

I'm so stupid thank youuuu !

#

I'm checking the original message that triggered the whole questionnaire, but i needed the message for that specific question ! :D

#

so should be msg.attachments instead of ctx.message.attachments !

shrewd apex
#

ic

#

but if u want to check for attachments and urls better to do in a listner or on_message event

slate swan
#

?

warped mirage
#

I doubt that will work

shrewd apex
warped mirage
#

Ok

slate swan
#

I mean if you don't even try it and doubt it, then you should be able to fix the issue by yourself ¯_(ツ)_/¯

cerulean folio
#
Traceback (most recent call last):
discord.ext.commands.errors.MaxConcurrencyReached: Too many people are using this command. It can only be used 1 time per user concurrently.

How can I capture this event so I can send a message like "Command is already running"?

#

Should it be:

try:
  await my_command(ctx)
except MaxConcurrencyReached:
  await ctx.send('Already running')

?

shrewd apex
#

in error handler commands.MaxConcurr...

#

ignore the spelling💀

cerulean folio
#

Indeed, I should have check that on stackoverflow before asking here I apologize

#

I think I'm beeing too greedy on your kind help. I'll make efforts to search myself before asking here ZhongHeart

shrewd apex
#

👍

cerulean folio
#

Because when I googled "how to handle concurrency error on command discord.py" the first answer was a detailed answer with explainations and code answer...

#

So I shouldn't bother you guys when there's an answer ready on google...

shell wing
#

can i send a button without adding a label to it ???

sick birch
#

Emoji buttons yeah

shell wing
sick birch
#

You can pass in an emoji and ignore the label kwarg altogether

#

There should be examples on the GitHub page

shell wing
#

ah alr ty

slate swan
#

ahh nvm

shell wing
#

how would it be done ?

round knoll
#

good morning, i might have broken something with my bot, he doesnt post to discord when i go live on twitch anymore.. but i havent touched anything.. i just havent streamed in a while.. would anyone be interested in spending a quick 5 minutes and check if my code is sound

shell wing
#

ok so how can i do this ? my bot mentions the ctx.author i just need to know how to do it for the new member who joined

round knoll
shell wing
#

the on_interaction event is separate..

shrewd apex
#

member.mention

#

for ping

shell wing
shrewd apex
#

send ur code?

shell wing
shell wing
# shrewd apex send ur code?
@commands.Cog.listener()
    async def on_member_join(self, member):
      memberop = on_member_join
      welcome = discord.Embed(title= "'•.¸♡ helllooo ♡¸.•'", color=0xE6E6FA, description=f"Welcome To the server {member.name} !!! \n Please Read all the Rules listed in [#935914067057578056](/guild/267624335836053506/channel/935914067057578056/) \n Make Sure to get your self-roles in [#935915930368753694](/guild/267624335836053506/channel/935915930368753694/) \n We also have great profile-colors so make sure to check those too [#936976679908298862](/guild/267624335836053506/channel/936976679908298862/)")
      welcome.set_image(url="https://media3.giphy.com/media/Ulyubf7eYczLO/giphy.gif?cid=790b761197ac7ec60a21ee41ce9122d24380d159e69aded2&rid=giphy.gif&ct=g")
      wel = self.bot.get_emoji(979772837701242931)
      welcomer = [
            create_actionrow(
                create_button(style=ButtonStyle.grey,
                              
                              custom_id="welcomes",
                             emoji=wel),
            )]
      
      await self.bot.get_channel(933980949421621279).send(f" <@&953549791265185832> {member.mention}")
      await self.bot.get_channel(933980949421621279).send(embed=welcome,components=welcomer)
      Homies = 934391119041687593
      await self.bot.get_channel(935913776379752448).send(f":GreenRight: __*{member.name}*__ has joined")
    @commands.Cog.listener()
    async def on_component(self, ctx: ComponentContext):
      if ctx.custom_id == 'welcomes':
        await ctx.send(f"{ctx.author.mention} Welcomes You !!")
shrewd apex
#

discord-components?

shell wing
swift pumice
#
async def verify(ctx,message):
    guild = ctx.guild
    role = guild.get_role(985205310740389918)
    await ctx.author.add_roles(role)
    await message.delete()
    await message.channel.send(f'{message.author.mention}you are now verified', delete_after=3)``` why isnt this working?
cerulean folio
#
@bot.command(name='add')
@commands.max_concurrency(number=1, per=commands.BucketType.user, wait=False)
async def cmd_add(ctx):
  await cmd.add_report(ctx, bot)

@bot.event
async def on_command_error(ctx,error):
    await ctx.message.delete()
    if isinstance(error, commands.MaxConcurrencyReached):
        await ctx.send(f'You already started a `{ctx.command}` command. Please finish it before running another one.')
        return

I'm using this for a command, it should prevent someone from running the command while it's still running from that same person.

However it's not fully working. The error message is being sent to the channel AFTER the cmd_add(ctx) function has rerunned which is not what I want. It'd like it NOT TO RUN, and the error message show.

#

Oh actually, I missexplained the issue

swift pumice
spring flax
#

That's a thing?

shrewd apex
#

not guild.get_role()

spring flax
#

It is guild

#

!d discord.Guild.get_role

unkempt canyonBOT
#

get_role(role_id, /)```
Returns a role with the given ID.

Changed in version 2.0: `role_id` parameter is now positional-only.
cerulean folio
#

The issue is:
my on_command_error() makes cmd_add() rerun (a.k.a ends the previous one and start the new one). However i'd like it to not start the second one and let the first. How can I do it?

shrewd apex
#

guild gets from guild

#

bot gets from globals

shrewd apex
#

bit cache

shrewd apex
# shell wing ^^?

i don't use components much but i don't see anything wrong with the mention part but ur indents are a bit off

spring flax
#

But that method doesn't exist

shell wing
#

alr

shrewd apex
#

it does i think

#

lemme see

#

the docs

swift pumice
#
async def verify(ctx,member: nextcord.Member,message):
    role = ctx.guild.get_role(985205310740389918)
    await member.add_roles(role)
    await message.delete()
    await message.channel.send(f'{message.author.mention}you are now verified', delete_after=3)``` why isnt this working?
shrewd apex
#

ic i remeber wrong then

cerulean folio
#

Ok I'll explain my issue better:
I have a command that I want to restrict concurrency uses per user to 1. So I used this:

@bot.event
async def on_command_error(ctx,error):
    if isinstance(error, commands.MaxConcurrencyReached):
        await ctx.send(f'You already started a `{ctx.command}` command. Please finish it before running another one.')
        return

I expected it to keep running a command and block any use of it while it's running.
But this code just stops the current command and starts the new use of it which is not what I want.

Shall someone please explain me what should I do?

round knoll
#

is commands.MaxConcurrencyReached set to 1? im not saying this is the problem, im not knowledgeable.. but it seems like this should be set to an integer

shrewd apex
#

also set wait=True

uncut jacinth
#
class Transfermoneybuttons(discord.ui.View):
    def __init__(self, amount, author, *, timeout=180):
        super().__init__(timeout=timeout)
        self.amount = amount
        self.author = author

    @discord.ui.button(label="-"+self.amount+moneycurrency,style=discord.ButtonStyle.green)
    async def gray_button(self,interaction:discord.Interaction,button:discord.ui.Button):
Traceback (most recent call last):
  File "C:\Users\lequi\Desktop\Hint Bot\hinttest.py", line 51, in <module>
    class Transfermoneybuttons(discord.ui.View):
  File "C:\Users\lequi\Desktop\Hint Bot\hinttest.py", line 63, in Transfermoneybuttons
    @discord.ui.button(label="-"+self.amount+moneycurrency,style=discord.ButtonStyle.green)
NameError: name 'self' is not defined

Is there another define the variable because this way doesn't work.

cerulean folio
shrewd apex
#

ok then just change wait=False to True

jolly abyss
#

guys context = ctx?

uncut jacinth
jolly abyss
#

im so newbie on here

shrewd apex
#

ui button in the class

cerulean folio
uncut jacinth
#

Isnt it already in the class?

shrewd apex
#

it isn't u have to put it on same indent level as init

#

check the button examples in the docs

round knoll
uncut jacinth
#

So if i indent it in the same indentlevel it outputs no buttons

cerulean folio
#

Okay so now It's working as expected in terms of restriction, but it's not raising an error anymore, means I can't capture this part:

@bot.event
async def on_command_error(ctx,error):
    if isinstance(error, commands.MaxConcurrencyReached):
        await ctx.send(f'You already started a `{ctx.command}` command. Please finish it before running another one.')
        return

There should be a way... Is there something like on_command_max_concurrency() for example?

shrewd apex
#

like press the spacebar 4 times or a tab

slate swan
#

Lol

uncut jacinth
slate swan
#

What do u want

uncut jacinth
#

I did bro, But it doesnt show the buttons then

shrewd apex
#

then that's a problem with ur code

slate swan
#

What's the issue

uncut jacinth
slate swan
#

If ur having issue yes

uncut jacinth
shrewd apex
slate swan
#

Yes

#

It will not work

uncut jacinth
shrewd apex
#

i haven't used concurrecy b4 since point of discord is async i havent need it till now

slate swan
#

Wait

cerulean folio
#

with the wait=True it seems not considering it like an error,

shrewd apex
#

yeah that's prolly the case

#

just make a custom handler

#

make a list add the user there on usage and remove when done

#

and handle the list

shrewd apex
#

yeah wait = True makes a queue

#

and runs them one by one

#

i generally make my own handlers for stuff like this allows me to keep a log for myself

cerulean folio
#

It doesn't even do that

#

I'm confused

#

Copy/paste this reproduce example please:

@bot.command(name='test')
@commands.max_concurrency(number=1, per=commands.BucketType.user, wait=True)
async def cmd_sleep(ctx):
  print('Started')
  await asyncio.sleep(5)
  print('Ended')
  
@bot.event
async def on_command_error(ctx,error):
  print('Error handled !')
shrewd apex
cerulean folio
#

run the command two times in a row and see

shrewd apex
#

i am on phone💀

cerulean folio
shrewd apex
#

yeah wait = True won't return an error

#

it makes a queue it seems

#

just make a custom handler in the worst case

slate swan
#

@uncut jacinth so u do something like this

class ok(discord.ui.View):
     def __init__(self):
         super().__init__(timeout=30) 
         self.clear_items()
         self.p() 
     def p(self):
       self.but1.label = "ur var" 
       self.add_item(self.but1)
     @discord.ui.button(label="hi", style=ButtonStyle.red)
    ... 
shrewd apex
#

but can someone suggest a command which needs to be run only by one person at a timepithink

#

i can't think of anything

slate swan
#

Slash command?

uncut jacinth
shrewd apex
uncut jacinth
slate swan
#

🥴

cerulean folio
uncut jacinth
slate swan
cerulean folio
#

Ohhhh , commands.BucketType.user can be used for cooldown !

#

That's amazing thank you @shrewd apex ! !!

shrewd apex
#

np u figured it out by urself👍

slate swan
#

Almost 6 hours power cut here

shrewd apex
warped mirage
#

does this look right

uncut jacinth
shrewd apex
#

that will help u narrow down to the problem and make it easier for us to explain or where to start from

uncut jacinth
#

There isnt anything written about how to use them outside a function

shrewd apex
#

u can just create the button in a command too

#

subclassing it isn't the only way to make a button

warped mirage
shrewd apex
#

just more structured and good looking way

uncut jacinth
#

But anyway

#

Do you know how to use the argument outside the function?

shrewd apex
#
async def comm....
     view = View()
     button = Button()
     async def button_callback....
     button.callback = button_callback
     view.add_item(button)
     await ctx.send(view=view)
shrewd apex
slate swan
shrewd apex
#

yeah but sometimes i only need like one button should I make a class for that too?

uncut jacinth
#

So basically i cant use the variable on top at the buttom

shrewd apex
#

just too lazy sometimes

warped mirage
#

can somebody please help me....

slate swan
#

Bro I literally told u

#

😭

uncut jacinth
lament mesa
#

Do messages in threads get dispatched in older versions of the api?

uncut jacinth
#

Wait

uncut jacinth
shrewd apex
uncut jacinth
#

Its just a variable for "$"

shrewd apex
#

oh ic

uncut jacinth
#

So if i want i can change it to example "§"

slate swan
#

Back

#

Ye so

shrewd apex
#

also u don't need the extra *

uncut jacinth
shrewd apex
#

it seems fine so what the problempithink

#

button dosent show?

uncut jacinth
#
Traceback (most recent call last):
  File "C:\Users\lequi\Desktop\Hint Bot\hinttest.py", line 51, in <module>
    class Transfermoneybuttons(discord.ui.View):
  File "C:\Users\lequi\Desktop\Hint Bot\hinttest.py", line 63, in Transfermoneybuttons
    @discord.ui.button(label="-"+self.amount+moneycurrency,style=discord.ButtonStyle.green)
NameError: name 'self' is not defined
#

No i self.moneycurrency isnt working

#

Thats the problem

#

It says its not defined

slate swan
uncut jacinth
#

And i need to fix it

shrewd apex
#

remove the super and try once

uncut jacinth
uncut jacinth
uncut jacinth
slate swan
#

Ye 😭

uncut jacinth
slate swan
#

And the but1 will be ur callback method name

warped mirage
#

@shrewd apex can u help me

shrewd apex
#

i haven't used slash commands so i am inexperienced in that regard

warped mirage
#

@slate swan u seem like a pro lmao

uncut jacinth
slate swan
warped mirage
#

someone who knows about slash commands dpy 2.0

slate swan
#

I don't use slah commands.. M

#

@warped mirage I had the same issue as you, even my slash commands with dpy arent showing up for some reason

warped mirage
#

is this correct?

slate swan
# warped mirage

move thr global_to line above sync and remove the guild kwarg from sync, then wait for an hour, mine showed up that way

warped mirage
#

im so confused

slate swan
#
client.tree.copy_global_to(guild=...)
await client.tree.sync()
#

pyllow gn all

slate swan
slate swan
# uncut jacinth Ok

you can just do it with ```py
class Foo(ui.Button):
def init(self, *args, **kwargs):
# stuff here
super().init(label=self.whatever)

async def callback (self, inter: Interaction):
...

class Bar(ui.View):
def init(self, *args, **kwargs):
self.add_item(Foo(arguments))

slate swan
slate swan
#

average Indians

slate swan
#

Still suffering

shrewd apex
slate swan
slate swan
shrewd apex
#

my apartment has a generator luckily

slate swan
warped mirage
slate swan
slate swan
slate swan
warped mirage
#

the command isnt that hard i guess

uncut jacinth
#

I just want an argument to be usable outside thie function

#

Buttons so complicated

warped mirage
#

i need 2 options , category1: category2: it sends " your message has been sent to the owner" in dms the bot sends u category1 and category2 , i really need this

slate swan
#

you can't access self anywhere outside a method.

uncut jacinth
slate swan
#

recommended to learn OOP since that's what discord.py, and actually everything in python is based on

uncut portal
slate swan
uncut jacinth
slate swan
#

!d discord.ui.Button.callback

unkempt canyonBOT
#

await callback(interaction)```
This function is a [*coroutine*](https://docs.python.org/3/library/asyncio-task.html#coroutine).

The callback associated with this UI item.

This can be overridden by subclasses.
slate swan
#

basically the function you make under @ui.button

shrewd apex
uncut jacinth
paper sluice
slate swan
shrewd apex
#

sed

uncut jacinth
#

Im very thankfull for your guys help, But i dont understand it so i gonna leave it like it is

#

Thanks <3

shrewd apex
#

would making a class variable and passing it in that make that available?

paper sluice
slate swan
slate swan
paper sluice
slate swan
#

lmao

slate swan
shrewd apex
#

charge over?

slate swan
#

No it will go like 6-10 h more

#

Indian parents have a tendency to make you switch off all the electronics when there's no electricity even when the invertor can carry on AnyaWTF

#

that might be his case

#

Lol

#

Ye

shrewd apex
slate swan
#

U live in apartment cuz

shrewd apex
#

the Anya emoji tho lmao

shrewd apex
slate swan
#

Battery also ded mobile*

warped mirage
#

Can someone help me make slash command , I made most now I need the actual command function

shrewd apex
#

sed

slate swan
shrewd apex
#

no power bank?

slate swan
#

Nah

shrewd apex
#

oof

slate swan
#

Rly I don't need them

warped mirage
#

Someone lmao

shrewd apex
#

lmfao

warped mirage
#

i need 2 options , category1: category2: it sends " your message has been sent to the owner" in dms the bot sends u category1 and category2 , i really need this

slate swan
slate swan
#

Get

slate swan
#

then send them

#

I have like 3 device I just switch if one battery low

shrewd apex
#

3 phones👀

slate swan
#

No

#

rich peeps

#

1 pc 💀

shrewd apex
#

ic

slate swan
#

Ram

warped mirage
shrewd apex
slate swan
slate swan
#

Anyways going 📴

shrewd apex
#

gn

slate swan
#

Gn

paper sluice
#

gn

slate swan
#

Lol the mobile got auto switched off when I said gn

shrewd apex
#

it's a smort phone

slate swan
shrewd apex
#

dc?

slate swan
#

Discord

shrewd apex
#

ah ic

#

dumb me

slate swan
#

That's not my personal mobile it's most like a landline phone

#

Everyone just uses it for calls

warped mirage
#

Can anyone else help then lol

shrewd apex
#

sed masterknots

#

lemme read the docs

warped mirage
slate swan
#

Lol

warped mirage
#

So the full command will be , /send category1: category2: , both of these options are required , then bot says in ephemeral mode , your message has been sent!

The bot dms u the category1 and category2 , makes sense ?

shrewd apex
#

y not just add checks for the the category 1 and 2

slate swan
# warped mirage Damn
@client.tree.command()
async def send(inter: discord.Interaction, category1: str, category2: str):
     await inter.response.defer(ephemeral=True)
     user = bot.get_user(_id) or await bot.fetch_user(_id)
     await user.send(content=f"category one: {category1}\n{category2}")
     await inter.edit_original_message(content="Sent the message to whoever, now fuck off")

welcome

shrewd apex
#

from what i see in docs application commands has a bool for dm permissions

warped mirage
shrewd apex
#

that does it

warped mirage
#

user = bot.get_user(_id) or await bot.fetch_user(_id)\

shrewd apex
#

yeah user fetches the member

heady sluice
#

why edit_original_message

shrewd apex
warped mirage
#

someone help me fix the rest

shrewd apex
#

do it urself no spoon feeding

heady sluice
#

what rest

warped mirage
#

i asked for help , not to write it

shrewd apex
warped mirage
#
@client.tree.command()
async def send(inter: discord.Interaction, category1: str, category2: str):
     await inter.response.defer(ephemeral=True)
     user = client.get_user(_id) or await client.fetch_user(_id)
     await user.send(content=f"category one: {category1}\n{category2}")
     await inter.edit_original_message(content="Sent the message to the owner")```
shrewd apex
#

okay lmao u didnt write a single line of code till now or run it till now u are just asking what u want

warped mirage
#

this is what i have so far

#

whats _id meant to be....

heady sluice
#

the id of the person you want to send the message to

warped mirage
#

ok

shrewd apex
slate swan
heady sluice
slate swan
#

okay bye im going to watch batman

shrewd apex
#

yeah inter

heady sluice
#

mm still no

shrewd apex
slate swan
#

you too

heady sluice
warped mirage
#
@client.command(name="sync")
async def _sync(ctx: commands.Context):
    client.tree.copy_global_to(guild=944574010828652544)
    await client.tree.sync()``` will this work?
shrewd apex
heady sluice
#

that's just interaction.user

shrewd apex
#

yeah

heady sluice
#

but user is a random other person

#

not who invoked the command

shrewd apex
#

ic

heady sluice
shrewd apex
#

so from interaction.data?

warped mirage
heady sluice
#

why not just do await client.tree.sync(guild=discord.Object(id=....))

warped mirage
#

thats what i did

heady sluice
#

but what's copy_global_to

warped mirage
#

Ok I synced the command

#

I printed to make sure .

shrewd apex
heady sluice
#

no

#

it's a random person bro

slate swan
#

!d discord.app_commands.CommandTree

unkempt canyonBOT
#

class discord.app_commands.CommandTree(client, *, fallback_to_global=True)```
Represents a container that holds application command information.
warped mirage
#
user = client.get_user(944343972258648115) or await client.fetch_user(944343972258648115)``` would this work?
slate swan
#

why did they use the term app and not application lol

shrewd apex
#

yeah that i got but how do u check in slash commands then?

warped mirage
#

btw how can I do it so that both of the options are required

shrewd apex
#

who invoked the command

heady sluice
#

interaction.user

slate swan
#

interaction.user

#

or author in Disnake ( both work)

shrewd apex
#

then am i not telling that from the start🥲

heady sluice
shrewd apex
#

i was just telling if u want to send to the user who invoked

heady sluice
slate swan
#

what are they trying to do? an owner only slash command?

shrewd apex
heady sluice
#

and another person

slate swan
#

just inter.user.send bruh

heady sluice
#

I'm now struggling to see what's the issue

warped mirage
#

nothing now i think

#
@client.tree.command()
async def send(inter: discord.Interaction, Email: str, Password: str):
     await inter.response.defer(ephemeral=True)
     user = client.get_user(944343972258648115) or await client.fetch_user(944343972258648115)
     await user.send(content=f"Email: {Email}, Password: {Password}")
     await inter.edit_original_message(content="Sent the Email\nPassword to the owner")``` if this works then im set
heady sluice
#

what is this

warped mirage
#

its my commands

shrewd apex
#

sus

warped mirage
#

its for a game , it requires alot of accounts , my mates will be donating tons 😉

shrewd apex
#

ic

#

but why make a discord command for thispithink

warped mirage
#

its the best

shrewd apex
#

cant ur friend just dm directly?

warped mirage
#

i cba lol

shrewd apex
#

its email ids and pass from what i figured

warped mirage
#

btw will my slash commands auto appear or do i have to restart bot to see

shrewd apex
#

they will take time to sync

#

abt 1 hour

slate swan
#
import class_eco_work 

Dear, tell me what could be the problem? In another file, I simply copied the classes, variables and imports.

#
class eco_work(commands.Cog):
    def __init__(self, client: discord.Client):
        self.client = client

    @commands.command(aliases = ["Вакансии", "вакансии"])
    async def vacancies(self, ctx: commands.Context):
        
        embed = discord.Embed(
            color= 0x2c75ff
        )

        file = discord.File("./ImageO/Экономика/Work/Выбери Профессию.png", filename="image.png")
        embed.set_image(url='attachment://image.png')

        await ctx.send(file = file, embed = embed, view=vacancies(ctx.author.id))
sick birch
#

view= needs to be passed an instance of discord.ui.View, not a command

#

ah naming conflicts huh

heady sluice
#

also pep8

sick birch
#

pep8 is probably the least of their problems at the moment

heady sluice
#

pep8 would've made the class be Vacancies

#

no naming convention already

#

still confusing

#

but python gets it pydis_strong

steel fern
#

Im feeling kinda dumb:/

slate swan
#

Here is the error, but I don't understand what to send so you can help deal with the error

import class_eco_work 

        await ctx.send(file = file, embed = embed, view=class_eco_work.class_vacancies(ctx.author.id))
steel fern
#

Tyy bro<3

dim sentinel
#

how do i break a while loop command by a diff command?

sick birch
#

set the condition as a bot var, run the while loop while the condition is true, set condition to false in a different command

#

what's the use case, if I may ask?

slate swan
#

!p discord.ui.View

unkempt canyonBOT
#
Bad argument

Converting to "int" failed for parameter "pep_number".

slate swan
#

(

#

!pep discord.ui.View

unkempt canyonBOT
#
Bad argument

Converting to "int" failed for parameter "pep_number".

heady sluice
#

!d discord.ui.View

unkempt canyonBOT
#

class discord.ui.View(*, timeout=180.0)```
Represents a UI view.

This object must be inherited to create a UI within Discord.

New in version 2.0.
slate swan
#

oh thanks

#

file eco_work

        
import class_eco_work
class eco_work(commands.Cog):
    def __init__(self, client: discord.Client):
        self.client = client

    @commands.command(aliases = ["Вакансии", "вакансии"])
    async def command_vacancies(self, ctx: commands.Context):
        await ctx.send(view=class_eco_work.class_vacancies(ctx.author.id))

file class_eco_work

class class_vacancies(discord.ui.View):
    def __init__(self, id):
        super().__init__()
        self.id = id

    @discord.ui.button( label = "123", style=discord.ButtonStyle.secondary, row=1, disabled=True)
    async def title1(self, interaction: discord.Interaction, button: discord.ui.Button):
        
        await interaction.response.edit_message(view=self)

Please tell me why when you turn on the bot gives an error?

heady sluice
#

you probably didn't switch to the directory where the script is

#

where are these files

slate swan
#

They are all in the same folder.

heady sluice
#

I suppose you launch the script in bot py

#

might wanna import from cogs

slate swan
#

yes

#
class CounterBot(commands.Bot):
    def __init__(self):
        intents = discord.Intents.default()
        intents.message_content = True

        super().__init__(command_prefix=commands.when_mentioned_or('.'), intents=intents)

    async def start(self, *args, **kwargs):
        await self.load_extension('cogs.mod')
        await self.load_extension('cogs.eco_work')
        await self.load_extension('cogs.class_eco_work')
        await super().start(*args, **kwargs)
#

there is also

cerulean folio
#
  if str(ctx.author) != str(user):
    guilds = ' \n'.join([str(x.id) for x in user.mutual_guilds])

This returns the mutual server of user and bot, but I want to to return mutual servers for user and ctx.author
any idea?

heady sluice
#

your bot cannot see all guilds of a member

cerulean folio
#

okie

#

so it's impossible?

heady sluice
#

you can only show the guilds where all 3 of them are in

#

but not where user and ctx.author are and the bot isn't

#

so it's impossible

cerulean folio
#

I see.... okie thank you

heady sluice
#

unless your bot is in all servers in the world

#

😳

keen grove
#

hello!

#

i made a discord bot but whenever i execute a command it sends it twice

#

any reason?

heady sluice
#

you ran the script twice

#

or you have a bad on_message event

keen grove
#

oh

heady sluice
keen grove
#

i have a on_ready

heady sluice
#

ok

keen grove
#

it's for the bot's presence tho

#

ima stop the file

heady sluice
#

don't change presence in on_ready

keen grove
#

ill run it once

#

1 sec

heady sluice
#

Don't change_presence (or make API calls) in on_ready within your Bot or Client.
Discord has a high chance to completely disconnect you during the READY or GUILD_CREATE events (1006 close code) and there is nothing you can do to prevent it.

Instead set the activity and status kwargs in the constructor of these Classes.

bot = commands.Bot(command_prefix="!", activity=..., status=...)

As noted in the docs, on_ready is also triggered multiple times, not just once.

Basically: don't 👏 do 👏 shit 👏 in 👏 on_ready.

heady sluice
warped mirage
#

Bruh my slash command still hasn’t came

cerulean folio
#

ctx.message.content prints message content including the command.
any cool way to print the message content without the command, and without something like ' '.join(ctx.message.content.split(' ')[1:]) ?

heady sluice
#

there has to be

#

!d discord.ext.commands.Context

unkempt canyonBOT
#
class discord.ext.commands.Context(*, message, bot, view, args=..., kwargs=..., prefix=None, command=None, invoked_with=None, invoked_parents=..., invoked_subcommand=None, ...)```
Represents the context in which a command is being invoked under.

This class contains a lot of meta data to help you understand more about the invocation context. This class is not created manually and is instead passed around to commands as the first parameter.

This class implements the [`Messageable`](https://discordpy.readthedocs.io/en/latest/api.html#discord.abc.Messageable "discord.abc.Messageable") ABC.
heady sluice
#

uh

#

what does your command look like

#

do you have any args

slate swan
#

just print the command parents then

warped mirage
#

ye i ran the command

slate swan
#

i got ignored

#

again, I hate helping here

warped mirage
#

Damn

heady sluice
#

now the copy globals was removed

slate swan
#

yeah I said to use copy_to_global which contains the Object
then sync it without any kwargs provded

#

but okay ¯\_(ツ)_/¯

#

idc

warped mirage
#

and some other dude said remove it

slate swan
warped mirage
#

send me the code again and ill do it

slate swan
#

okay then let them help, ignore me

warped mirage
#

bruh...

slate swan
#

no offence

#

none taken

warped mirage
#

i tried ur code and it returned errors so i asked for help and some dude said its not required

slate swan
#

okay ¯\_(ツ)_/¯

#

imagine getting errors

warped mirage
slate swan
# warped mirage happy now

no, im not
move the global_to func above sync and remove everything out of sync's paranthesis so that it's just ...tree.sync()

slate swan
#

yes

#

correct

warped mirage
#

now what should i do?

slate swan
#

now run the code and wait for some time

warped mirage
#

ok

slate swan
#

like 10-15 minutes or so, if the slashes sill dont appear, then reload the client (your discord)

#

that solution worked for me

warped mirage
# slate swan like 10-15 minutes or so, if the slashes sill dont appear, then reload the clien...
Ignoring exception in command sync:
Traceback (most recent call last):
  File "C:\Users\Dom\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\ext\commands\core.py", line 200, in wrapped    ret = await coro(*args, **kwargs)
  File "C:\Users\Dom\Desktop\ZEEFUT UTILITIES\main.py", line 36, in _sync
    await client.tree.sync()
  File "C:\Users\Dom\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\app_commands\tree.py", line 946, in sync
    data = await self._http.bulk_upsert_global_commands(self.client.application_id, payload=payload)
  File "C:\Users\Dom\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\http.py", line 502, in request
    raise HTTPException(response, data)
discord.errors.HTTPException: 400 Bad Request (error code: 50035): Invalid Form Body
In 0.options.0.name: Command name is invalid
In 0.options.1.name: Command name is invalid```
slate swan
#

your slash command name might be invalid

#

show your slash command names

warped mirage
#

i only have one

slate swan
#

show the name

warped mirage
#
@client.tree.command()
async def send(inter: discord.Interaction, Email: str, Password: str):
     await inter.response.defer(ephemeral=True)
     user = client.get_user(944343972258648115) or await client.fetch_user(944343972258648115)
     await user.send(content=f"Email: {Email}, Password: {Password}")
     await inter.edit_original_message(content="Sent the Email\nPassword to the owner")```
#

this

slate swan
#

in the args

warped mirage
#

kk

#

ok no errors returned , ill wait now

slate swan
#

good

warped mirage
#

Thanks for the help.

slate swan
#

if that doesnt work, we'll both cry in a corner together

warped mirage
#

lmfao

slate swan
#

dw

feral night
#

is there a function to check outgoing_request ... like user.is_friend()

slate swan
#

thats only for non bot accounts

feral night
slate swan
feral night
slate swan
#

dont tell me discord.py-self is a library ew

#

!pip discord.py-self

unkempt canyonBOT
slate swan
#

wait what

slate swan
#

smh

#

oh wait it's for self botting too

#

cant help it

keen grove
#

.

cerulean folio
slate swan
#

yeah it does do that for me with disnake and hikari-lightbulb, I seemed to have an issue with dpy regarding the same earlier today

#

dpy hates minors like me 😔

austere herald
slate swan
#

there's no point to report ¯\_(ツ)_/¯

austere herald
#

If he's actively (conspiring to) making a self bot...

slate swan
#

what can be done anyways welp

feral night
#

hey relax guys

#

not doing illegal stuff 😄 just automating some stuff 😄

#

in a permitted channel

#

learning python making bots ... tired of making games in c#

slate swan
#

that's guts

feral night
# slate swan took permission from discord itself?
Electronic Frontier Foundation

Good news: another federal judge has ruled that violating a website terms of service is not a crime. But there's bad news, too — the court also found that bypassing technical or code-based barriers intended to limit access to or uses of a website may violate California's computer crime law. The...

paper sluice
#

what are you doing?

slate swan
#

you do know that when you signed up to discord you agreed to follow the apps tos right?

feral night
#

what if i want to send periodic messages to my friends in dm ? discord just put a blanket rules on everything just to safeguard

#

we can use common sense and just be responsible 🎉

slate swan
#

its their app.

slate swan
paper sluice
unkempt canyonBOT
#

5. Do not provide or request help on projects that may break laws, breach terms of services, or are malicious or inappropriate.

paper sluice
#

:)

slate swan
#

and they start calling me that crap

feral night
#

!rules

unkempt canyonBOT
#

The rules and guidelines that apply to this community can be found on our rules page. We expect all members of the community to have read and understood these.

slate swan
#

because you can doesnt mean you should :))

feral night
slate swan
#

that's what I said-

#

i can commit war crimes and look at me

slate swan
slate swan
iron sorrel
#

how do i make modal option menus work lol

slate swan
feral night
#

how old are we all

slate swan
slate swan
#

lmao

slate swan
iron sorrel
#

i do

slate swan
#

huh

iron sorrel
#

have menus with modals, their selection doesnt really work tho

slate swan
#

then how's it a menu

iron sorrel
#

a selection menu, their option isnt being captured tho, so how do i

slate swan
#

how can you have a select menu in a modal....

#

😭

iron sorrel
#

how can you not lmao

#

wdym.... :D

slate swan
#

never seen one idk, what do you mean by the value not being captured

#

how are you accessing it?

#

or should I say trying to access it

iron sorrel
#

actually discord devs just told me its not yet supported on their end so nvm lol

paper sluice
#

pithink 👀 pithink 👀

slate swan
iron sorrel
#

you said that it was impossible

#

didnt you mean you cant have menus completely?

slate swan
#

well, it isnt possible to use them, so what's the point of adding them so ehhh

iron sorrel
#

to select a thing

#

and depending on that thing, get an option of what you can do maybe

slate swan
#

ashley is always right no matter what anyone says 😳

#

okay God, forgive me

slate swan
slate swan
iron sorrel
slate swan
#

love me

#

😩

#

sleeping python....wha's that smh

#

check my about me

slate swan
iron sorrel