Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inserting a empty url argument in discord.Streaming doesn't report a exception #6796

Closed
3 tasks done
Dafium opened this issue Apr 26, 2021 · 1 comment
Closed
3 tasks done
Labels
unconfirmed bug A bug report that needs triaging

Comments

@Dafium
Copy link

Dafium commented Apr 26, 2021

Summary

Inserting a empty url argument in discord.Streaming doesn't report a exception

Reproduction Steps

  • Run the code
  • Observe that the bot status hasn't changed
  • Observe that no exception has being reported

Minimal Reproducible Code

@bot.command()
@bot.is_owner()
async def status(ctx, *, status):
    await bot.change_presence(activity=discord.Streaming(name=str(status), type='Twitch', url=''))

Expected Results

discord.Streaming url argument is mandatory, this case should raise an exception.

Actual Results

No exceptions were raised and the programme acted as if everything was normal.

Intents

none

System Information

Python v3.9.4-final
discord.py v1.7.1-final
aiohttp v3.7.4.post0
system info: Windows 10 10.0.19041

Checklist

  • I have searched the open issues for duplicates.
  • I have shown the entire traceback, if possible.
  • I have removed my token from display, if visible.

Additional Context

it's my first time i'm reporting a bug, sorry if it's not a good bug to report.

@Dafium Dafium added the unconfirmed bug A bug report that needs triaging label Apr 26, 2021
@Rapptz
Copy link
Owner

Rapptz commented Apr 26, 2021

There's no validation on purpose since these objects are created on a hot loop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
unconfirmed bug A bug report that needs triaging
Projects
None yet
Development

No branches or pull requests

2 participants