Skip to content

Commit e5008b5

Browse files
authored
Merge pull request #193 from nextsnake/tag-epic/fix/componenets
Fix typo in components
2 parents de2e75c + 556f3e3 commit e5008b5

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

nextcore/http/client/wrappers/channel.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -744,7 +744,7 @@ async def create_message(
744744
embeds: list[EmbedData] | UndefinedType = UNDEFINED,
745745
allowed_mentions: AllowedMentionsData | UndefinedType = UNDEFINED,
746746
message_reference: MessageReferenceData | UndefinedType = UNDEFINED,
747-
componenets: list[ActionRowData] | UndefinedType = UNDEFINED,
747+
components: list[ActionRowData] | UndefinedType = UNDEFINED,
748748
sticker_ids: list[int] | UndefinedType = UNDEFINED,
749749
files: Iterable[File] | UndefinedType = UNDEFINED,
750750
attachments: list[AttachmentData] | UndefinedType = UNDEFINED, # TODO: Partial
@@ -787,7 +787,7 @@ async def create_message(
787787
The allowed mentions for the message.
788788
message_reference:
789789
The message to reply to.
790-
componenets:
790+
components:
791791
The components to send with the message.
792792
sticker_ids:
793793
A list of sticker ids to attach to the message.
@@ -855,8 +855,8 @@ async def create_message(
855855
payload["allowed_mentions"] = allowed_mentions
856856
if message_reference is not UNDEFINED:
857857
payload["message_reference"] = message_reference
858-
if componenets is not UNDEFINED:
859-
payload["componenets"] = componenets
858+
if components is not UNDEFINED:
859+
payload["components"] = components
860860
if sticker_ids is not UNDEFINED:
861861
payload["sticker_ids"] = sticker_ids
862862
if attachments is not UNDEFINED:

nextcore/http/client/wrappers/webhook.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@ async def execute_webhook(
659659
embeds: list[EmbedData] | UndefinedType = UNDEFINED,
660660
allowed_mentions: AllowedMentionsData | UndefinedType = UNDEFINED,
661661
message_reference: MessageReferenceData | UndefinedType = UNDEFINED,
662-
componenets: list[ActionRowData] | UndefinedType = UNDEFINED,
662+
components: list[ActionRowData] | UndefinedType = UNDEFINED,
663663
sticker_ids: list[int] | UndefinedType = UNDEFINED,
664664
files: Iterable[File] | UndefinedType = UNDEFINED,
665665
attachments: list[AttachmentData] | UndefinedType = UNDEFINED, # TODO: Partial
@@ -716,7 +716,7 @@ async def execute_webhook(
716716
The allowed mentions for the message.
717717
message_reference:
718718
The message to reply to.
719-
componenets:
719+
components:
720720
The components to send with the message.
721721
722722
.. note::
@@ -806,8 +806,8 @@ async def execute_webhook(
806806
payload["allowed_mentions"] = allowed_mentions
807807
if message_reference is not UNDEFINED:
808808
payload["message_reference"] = message_reference
809-
if componenets is not UNDEFINED:
810-
payload["componenets"] = componenets
809+
if components is not UNDEFINED:
810+
payload["components"] = components
811811
if sticker_ids is not UNDEFINED:
812812
payload["sticker_ids"] = sticker_ids
813813
if attachments is not UNDEFINED:

0 commit comments

Comments
 (0)