Browse Source

Fix webhook/

pull/10109/head
dolfies 4 years ago
parent
commit
d4b592cf49
  1. 2
      discord/webhook/async_.py
  2. 2
      discord/webhook/sync.py

2
discord/webhook/async_.py

@ -1238,7 +1238,7 @@ class Webhook(BaseWebhook):
if content is None:
content = MISSING
if self.type is WebhookType.application
if self.type is WebhookType.application:
wait = True
params = handle_message_parameters(

2
discord/webhook/sync.py

@ -20,9 +20,7 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
"""
"""
If you're wondering why this is essentially copy pasted from the async_.py
file, then it's due to needing two separate types to make the typing shenanigans
a bit easier to write. It's an unfortunate design. Originally, these types were

Loading…
Cancel
Save