You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Application.create_bot() - 'str' object does not support item assignment
Reproduction Steps
app = await self.client.create_application(name) # works in my case
bot_app = await app.create_bot() # creates the error
'''
'str' object does not support item assignment
'''
Code
try:
app=awaitself.client.create_application(name)
exceptExceptionase:
print(sty.fg.red+str(e) +sty.fg.rs)
awaitctx.send('Failed to create an application')
returntry:
bot_app=awaitapp.create_bot()
exceptExceptionase:
print(sty.fg.red+str(e) +sty.fg.rs)
awaitctx.send('Failed to create an bot to the application, the application was successfully created ...')
returnprint('before token ...')
token=awaitbot_app.reset_token()
Expected Results
should give me a ApplicationBot Object back instead of the error
Actual Results
well, it gives me the ''str' object does not support item assignment' error
Discord changed how these endpoints worked and the fix has been part of an ever-growing stash I haven't finished yet. I'll just commit this separately.
Summary
Application.create_bot() - 'str' object does not support item assignment
Reproduction Steps
app = await self.client.create_application(name) # works in my case
bot_app = await app.create_bot() # creates the error
'''
'str' object does not support item assignment
'''
Code
Expected Results
should give me a ApplicationBot Object back instead of the error
Actual Results
well, it gives me the ''str' object does not support item assignment' error
System Information
Checklist
Additional Information
No response
The text was updated successfully, but these errors were encountered: