An Enum covering most of discord's gateway intents that users can use and easily combine together to allow multiple intents for the bot's gateway.
Update: Ignore the "allow key" fix commit, I didn't sync my fork correctly.
import asyncio
from boncord import Bot, Intents
from boncord.utils import MemoryCache
from nextcore.http import BotAuthentication
# ... (truncated)
bot = Bot(
authentication = BotAuthentication(token),
cache = MemoryCache(),
intents = Intents.MESSAGE_CONTENT | Intents.GUILD_MESSAGES
)
async def main():
# TODO: listen to on message event
...
asyncio.run(main())
An Enum covering most of discord's gateway intents that users can use and easily combine together to allow multiple intents for the bot's gateway.
Update: Ignore the "allow key" fix commit, I didn't sync my fork correctly.
```python
import asyncio
from boncord import Bot, Intents
from boncord.utils import MemoryCache
from nextcore.http import BotAuthentication
# ... (truncated)
bot = Bot(
authentication = BotAuthentication(token),
cache = MemoryCache(),
intents = Intents.MESSAGE_CONTENT | Intents.GUILD_MESSAGES
)
async def main():
# TODO: listen to on message event
...
asyncio.run(main())
```