Luna
8d9ac79dbc
add guild create testing
...
related to #15 .
2019-03-26 23:43:19 -03:00
Luna
136f7a7348
Update Pipfile
...
many package updates
2019-03-26 17:42:28 -03:00
Luna
9e1db1f9b4
test_gateway: add test_heartbeat
...
- tests.conftest: hardcode IS_SSL to False
2019-03-26 01:02:06 -03:00
Luna
4c4efb61da
Update README.md
...
- add docs/clients.md
2019-03-26 00:44:05 -03:00
Luna
15fa2f3231
channel.messages: add foreign key deletions before message delete
...
- images: export try_unlink, and allow it to handle pathlib.Path
2019-03-23 21:19:30 -03:00
Luna
306444061d
litecord.storage: add hardcodes for guild.max_{presences, members}
2019-03-23 01:23:48 -03:00
Luna
40571fe1d1
features: use Storage.vanity_invite
2019-03-23 01:22:20 -03:00
Luna
a3e58abc2c
storage: fix app ref
2019-03-23 01:21:45 -03:00
Luna
973df47503
storage: move guilds.vanity_invite to Storage.vanity_invite
...
- storage: add guild.vanity_url_code in get_guild
2019-03-23 01:20:12 -03:00
Luna
7901a18332
storage: add author.discriminator when wb_info is found
2019-03-22 22:23:51 -03:00
Luna
8463f34e0e
docs/structure.md: add storage and error sections
...
- docs: add docs/extra_fields.md
2019-03-22 22:23:04 -03:00
Luna
c27806bc1b
Merge branch 'internal-docs' into 'master'
...
Documentation Improvements
Closes #42
See merge request litecord/litecord!28
2019-03-22 22:23:18 +00:00
Luna
5df68896d0
docs/operating.md: add 'Instance Invites' and 'Making someone Staff'
2019-03-22 19:13:40 -03:00
Luna
dc5aeda06b
README: add note on docs/operating.md
2019-03-22 19:04:36 -03:00
Luna
3b85556d89
gateway: docstrings!
...
also subjective readability improvements
2019-03-20 17:54:24 -03:00
Luna
58834f88af
permissions: add docstrings
2019-03-20 17:34:58 -03:00
Luna
b0f881f422
utils: docstring arrangements
2019-03-20 17:27:35 -03:00
Luna
56876c9dec
guilds: use to_update for j.icon
...
j.icon can be just a hash... so...
2019-03-20 16:35:49 -03:00
Luna
c07a1e28bd
system_messages: add docstring for send_sys_message
2019-03-20 03:42:11 -03:00
Luna
30dae2bf0e
snowflake: remove unused imports
2019-03-20 02:15:55 -03:00
Luna
55dbe4f5a2
snowflake: remove unused get_invite_code
...
blueprints.invites uses its own gen_inv_code() function, that
is reasonably faster than the original.
2019-03-20 02:05:35 -03:00
Luna
d20626e716
litecord.presence: add docstrings / better function naming
2019-03-20 02:04:36 -03:00
Luna
f1b8f7b0a0
litecord.jobs: add docstrings
2019-03-20 01:56:40 -03:00
Luna
69723437a6
litecord.auth: add docstrings and typings
2019-03-20 01:51:34 -03:00
Luna
970b4b8692
litecord.schemas: add better docstring for validate()
2019-03-20 01:40:23 -03:00
Luna
d1c0a7aa3c
add docs/structure.md
2019-03-20 01:27:52 -03:00
Luna
3239a8c18a
docs/pubsub.md: add practical call
2019-03-20 00:37:30 -03:00
Luna
a9be2a7cce
docs: add docs/pubsub.md, revamp README
2019-03-20 00:35:30 -03:00
Luna
982ac6f05b
Merge branch 'webhooks' into 'master'
...
Webhooks
Closes #41
See merge request litecord/litecord!27
2019-03-19 23:47:41 +00:00
Luna
4a56500adb
embed.messages: always pass url as EmbedURL
...
- embed.sanitizer: handle non-EmbedURL on fetch_embed
2019-03-19 00:44:34 -03:00
Luna
bc13e06eee
webhooks: fixes from table changes
...
- webhooks: fix create avatar base64
- webhooks: fix info.name
- embed.messages: handle EmbedURL on is_media_url
- storage: add fallback info for when wb_info is none
- storage: fix pop of non-existing webhook_id
2019-03-19 00:30:49 -03:00
Luna
13720904bd
embed.messages: fix syntax, add docstring
2019-03-19 00:06:52 -03:00
Luna
404783534c
webhooks: add draft for avatar_url on webhook execute
...
this is a bit messy due to us having to call mediaproxy for the given
url, then store it on icons manager.
- embed.messages: add is_media_url
- embed.sanitizer: add fetch_raw_img
- embed.schemas: add EmbedURL.to_md_path
2019-03-19 00:04:42 -03:00
Luna
1d9c9f7b85
schemas: change avatar_url in webhook exec to EmbedURL coerce
...
- embed.schemas: add EmbedURL.scheme
2019-03-18 23:08:10 -03:00
Luna
507393678e
litecord.storage: inject discriminator on webhook author
2019-03-18 23:03:35 -03:00
Luna
dab830066b
16_messages_webhooks.sql: fix comments
...
- storage: add explanation for wb_info
2019-03-18 23:00:16 -03:00
Luna
02c6741d74
webhooks: "finish" execution impl
...
it can do messages. but many things are still missing.
- channel.messages: export msg_guild_text_mentions
- storage: revamp Storage._inject_author
- schema.sql: remove messages.webhook_id, add message_webhook_info
table
- add 16_messages_webhooks.sql migration
2019-03-18 22:47:59 -03:00
Luna
3866b1f2bc
webhooks: add WEBHOOKS_UPDATE event dispatch
2019-03-18 18:00:27 -03:00
Luna
8c43bdcee7
webhooks: fix unpack order
...
- run: add warn calls for expected errors
2019-03-18 17:50:59 -03:00
Luna
012567c9d2
webhooks: add channel checks when user updates webhook
2019-03-18 17:44:30 -03:00
Luna
379bd75424
webhooks: fix typo on get_webhook's sql
2019-03-18 04:57:09 -03:00
Luna
e8c158da81
add 15_drop_nullable_webhook_avatar.sql
...
- webhooks: quickfix to webhook_check
2019-03-18 04:54:23 -03:00
Luna
712f1d9ff2
webhooks: add drafts for execution impl
...
- channel.messages: export msg_create_request,
msg_create_check_payload, msg_add_attachment
- schemas: add WEBHOOK_MESSAGE_CREATE
2019-03-18 04:35:44 -03:00
Luna
8360638356
webhooks: add webhook delete impl
2019-03-17 17:39:59 -03:00
Luna
d29fa2e1f3
webhooks: add webhook patch impl
...
- schemas: add WEBHOOK_UPDATE
2019-03-17 17:35:51 -03:00
Luna
eeee05cfe9
webhooks: add more impls
2019-03-17 03:45:31 -03:00
Luna
5a198de517
webhooks: generate a proper token and insert icon on creation
2019-03-17 03:28:54 -03:00
Luna
89009d44c6
webhooks: fix unused/undefined vars
2019-03-17 02:00:51 -03:00
Luna
ca676f6bfb
webhooks: add impl to create and fetch webhook list
...
- schemas: add WEBHOOK_CREATE
2019-03-17 01:33:05 -03:00
Luna
67acf7e22a
Merge branch 'admin-api-conversion' into 'master'
...
Admin api conversion
Closes #38
See merge request litecord/litecord!26
2019-03-17 02:33:53 +00:00