Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions interactions/api/gateway/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

from aiohttp import ClientWebSocketResponse, WSMessage, WSMsgType

from ...base import get_logger
from ...base import __version__, get_logger
from ...client.enums import InteractionType, OptionType
from ...client.models import Option
from ...utils.missing import MISSING
Expand Down Expand Up @@ -149,7 +149,9 @@ def __init__(
"timeout": 60,
"autoclose": False,
"compress": 0,
"headers": {"User-Agent": self._http._req._headers["User-Agent"]},
"headers": {
"User-Agent": f"DiscordBot (https://github.com/interactions-py/library {__version__}) "
},
}

self._intents: Intents = intents
Expand Down