Pycord-Development / pycord

Pycord is a modern, easy to use, feature-rich, and async ready API wrapper for Discord written in Python
https://docs.pycord.dev
MIT License
2.71k stars 459 forks source link

DeprecationWarning for BridgeOption raised at module level #2449

Closed BobDotCom closed 3 months ago

BobDotCom commented 3 months ago

Summary

The DeprecationWarning for bridge.Option is raised at the module level, and therefore shows when imported

Reproduction Steps

  1. Import discord.ext.bridge
  2. Observe the warning in console

Minimal Reproducible Code

from discord.ext.bridge import *

Expected Results

Only warn if the deprecated class is used

Actual Results

Always warn, even if the class isn't used

Intents

N/A

System Information

Checklist

Additional Context

No response