Skip to content

Commit 3473b8b

Browse files
author
Aubruz
committed
Bug fix
1 parent 5bedafc commit 3473b8b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
setup(
66
name="mainframe-bot-api",
7-
version="1.1.3",
7+
version="1.1.6",
88
author="aubruz",
99
author_email="[email protected]",
1010
packages=find_packages(),

mainframe/response.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def __init__(self, url):
2727
self.json['type'] = 'authentication'
2828

2929
def add_payload(self, payload):
30-
self.json['payload'] = payload
30+
self.json['payload'] = payload.get()
3131

3232
return self
3333

@@ -45,7 +45,7 @@ def add_message(self, message):
4545
self.json['message'] = message
4646

4747
def add_data(self, data):
48-
self.json['data'] = data
48+
self.json['data'] = data.get()
4949

5050

5151
class EmbedData(ArrayType):
@@ -68,7 +68,7 @@ def __init__(self, title=''):
6868
self.json['type'] = 'modal'
6969

7070
def set_ui(self, ui_payload: UIPayload):
71-
self.json['components'] = ui_payload.get()
71+
self.json['ui'] = ui_payload.get()
7272

7373
return self
7474

0 commit comments

Comments
 (0)