Completed the `duration` reaction role setting implementation. Improved the `Duration` setting type format. Moved reaction roles to their own module. Various small bugfixes.
23 lines
531 B
Python
23 lines
531 B
Python
from data import Table, RowTable
|
|
|
|
|
|
reaction_role_messages = RowTable(
|
|
'reaction_role_messages',
|
|
('messageid', 'guildid', 'channelid',
|
|
'enabled',
|
|
'required_role', 'allow_deselction',
|
|
'max_obtainable', 'allow_refunds',
|
|
'event_log'),
|
|
'messageid'
|
|
)
|
|
|
|
|
|
reaction_role_reactions = RowTable(
|
|
'reaction_role_reactions',
|
|
('reactionid', 'messageid', 'roleid', 'emoji_name', 'emoji_id', 'emoji_animated', 'price', 'timeout'),
|
|
'reactionid'
|
|
)
|
|
|
|
|
|
reaction_role_expiring = Table('reaction_role_expiring')
|