#Getting a 405 error

1 messages · Page 1 of 1 (latest)

dense sigil
#

discord.errors.HTTPException: 405 Method Not Allowed (error code: 0): 405: Method Not Allowed

cold cobalt
#

read pins in #969580926885580801

dense sigil
#

i already had it tho

cold cobalt
#

then you're fine

#

you can ignore the error

dense sigil
#

nothing shows up

#

tho it lets me see that

#

so its weird

cold cobalt
#

was it working before?

dense sigil
#

figured out that my friends had slash cmds off for some reason

#

but now

#
@bot.slash_command(guild_ids=[912799931515949168])
async def sendemail(ctx: discord.ApplicationContext, 
numberofsends: Option(int, "How many times to send") ,
subject: Option(str, "The title of the email", required=False), 
message: Option(str, "The message of the email", required=False), 
attachment: Option(discord.Attachment, "The attachment of the email", required=False)):
#

the parameters arent being added

#

no matter how many times i restart the bot

cold cobalt
#

it can sometimes take a while for the command to update after it's been registered

#

if you try to use it do you get a "this command is out of date" message?

dense sigil
#

nah i had an if statement that says if none of the parameters have sumn then to reply and its replying w that message

#

so its working but acting as tho there is no parameters