Skip to content

Commit e8db8ce

Browse files
committed
fix: handle no message access for context
1 parent d690453 commit e8db8ce

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

interactions/models/internal/context.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
import discord_typings
88
from aiohttp import FormData
9-
from interactions.client.const import get_logger
9+
from interactions.client.const import get_logger, MISSING
1010
from interactions.models.discord.components import BaseComponent
1111
from interactions.models.discord.file import UPLOADABLE_TYPE
1212
from interactions.models.discord.sticker import Sticker
@@ -165,6 +165,10 @@ class BaseContext(metaclass=abc.ABCMeta):
165165

166166
def __init__(self, client: "interactions.Client") -> None:
167167
self.client = client
168+
self.author_id = MISSING
169+
self.channel_id = MISSING
170+
self.message_id = MISSING
171+
self.guild_id = MISSING
168172

169173
@property
170174
def guild(self) -> typing.Optional["interactions.Guild"]:

0 commit comments

Comments
 (0)