Repository: Rapptz/discord.py

Issue:
`use_external_apps` is False when using `discord.Permissions.all()`
### Summary

The title pretty much says at all. Even when using `discord.Permissions.all()` which should theoretically return all permissions set to True, `use_external_apps` still returns False. 

### Reproduction Steps

1. Create a `discord.Permissions` object with the `.all()` classmethod
2. Check the `use_external_apps` permission with `.use_external_apps`

### Minimal Reproducible Code

```python
perms = discord.Permissions.all()
print(perms.use_external_apps)
```


### Expected Results

`True` to be printed

### Actual Results

`False` is printed

### Intents

`discord.Intents.all()`

### System Information

```
- Python v3.10.12-final
- discord.py v2.4.0-final
- aiohttp v3.9.5
- system info: Linux 6.8.0-40-generic #40~22.04.3-Ubuntu SMP PREEMPT_DYNAMIC Tue Jul 30 17:30:19 UTC 2
```

### Checklist

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

### Additional Context

_No response_

Discussion:

Patch:
diff --git a/discord/permissions.py b/discord/permissions.py
index 17c7b38c..b553e257 100644
--- a/discord/permissions.py
+++ b/discord/permissions.py
@@ -187,7 +187,7 @@ class Permissions(BaseFlags):
         permissions set to ``True``.
         """
         # Some of these are 0 because we don't want to set unnecessary bits
-        return cls(0b0000_0000_0000_0010_1111_1111_1111_1111_1111_1111_1111_1111_1111_1111_1111_1111)
+        return cls(0b0000_0000_0000_0110_0111_1111_1111_1111_1111_1111_1111_1111_1111_1111_1111_1111)
 
     @classmethod
     def _timeout_mask(cls) -> int:


Test patch:
diff --git a/tests/test_permissions_all.py b/tests/test_permissions_all.py
new file mode 100644
index 00000000..883dc1b6
--- /dev/null
+++ b/tests/test_permissions_all.py
@@ -0,0 +1,7 @@
+import discord
+
+from functools import reduce
+from operator import or_
+
+def test_permissions_all():
+    assert discord.Permissions.all().value == reduce(or_, discord.Permissions.VALID_FLAGS.values())