-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEmbedField.py
37 lines (28 loc) · 848 Bytes
/
EmbedField.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
"""
This class represents a single field that can be added to type Discord.Embed
"""
class EmbedField:
def __init__(self, value, name="", inline=True):
self._name = name
self._value = value
self._inline = inline
@property
def name(self):
return self._name
@name.setter
def name(self, value):
self._name = value
@property
def value(self):
return self._value
@value.setter
def value(self, value):
self._value = value
@property
def inline(self):
return self._inline
@value.setter
def inline(self, value):
self._inline = value
def __str__(self):
return str("name:{}, value:{}, inline:{}".format(self._name, self._value, self._inline))