Luna
20bc174ea1
impl: deprecated regions
2020-02-03 20:01:22 +00:00
Luna
a76460bea1
varied fixes due to sed fuckups
2020-01-06 22:55:20 -03:00
Luna
3481165bc5
everything: use winter
2020-01-06 21:38:29 -03:00
Luna
e917982f6d
guilds: remove unused import
2019-10-26 12:00:31 -03:00
Luna
44315b0845
move add_member to common.guilds
...
this decreases copy-pasting of the 'INSERT INTO members' line, and
add_member gets a `basic` kwarg to remove gateway side-effects
- errors: add 40007 error code to ERR_MSG_MAP
- invites: use 40007 and 10006 error codes
2019-10-26 11:57:43 -03:00
Luna
7c3e9ec2c7
move create_guild_settings to common.guilds
2019-10-25 16:19:18 -03:00
Luna
b41d3b6f36
guilds: use common, remove delete_guild() from it
2019-10-25 13:39:22 -03:00
Luna
2780ca4175
guilds: remove app_ param from delete_guild()
2019-10-25 10:24:20 -03:00
Luna
83a1c1ae29
black fmt pass
2019-10-25 07:27:50 -03:00
Luna
262273b618
split search result generation into own func on utils
2019-06-18 16:53:36 -03:00
Luna
2322c2603c
guilds: add message contexts
...
- guilds: fix fetch_readable_channels()
2019-06-18 16:42:08 -03:00
Luna
bcf12c8d3e
guilds: add search filter for readable channels
2019-05-30 21:34:36 -03:00
Luna
d8b889c1a9
add tests/test_admin_api/test_guilds.py
...
- guilds: decouple endpoint logic into a delete_guild() function
2019-04-22 02:13:53 -03:00
Luna
8d9ac79dbc
add guild create testing
...
related to #15 .
2019-03-26 23:43:19 -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
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
5c0dfcc9b1
guilds: add support for icon hash for j.splash
...
- guilds: fix guild icon being set to j.splash
- schemas: handle splash being icon hash
2019-03-15 04:39:09 -03:00
Luna
b6e21a2501
guilds: handle banner changes like user avatar changes
...
just like user avatars, the client can just send the icon hash, we need
to check that first beforehand.
- guilds: add description update
- utils: move to_update() from blueprints.users to there
2019-03-15 04:29:35 -03:00
Luna
44b81ea2f6
guilds: fix guild update icon call
...
- images: add support for splash and banner
- add jpeg check when converting extension
2019-03-15 04:17:57 -03:00
Luna
2bc3817a4e
guilds: fix region update vip check
2019-03-15 03:46:12 -03:00
Luna
79735eedf8
guilds: add (untested) impl for splash and banner
...
this finishes all theoretical implementations for features.
Closes #36 and #37 .
2019-03-15 03:34:49 -03:00
Luna
60ccd8db0b
guilds: add size=(128, 128) when updating guild icon
2019-03-15 03:16:17 -03:00
Luna
1987db11e4
guilds: decouple icon put logic into a func
2019-03-15 02:41:30 -03:00
Luna
a12c63a7bf
add impl for VIP_REGIONS
...
(untested)
- lvsp_manager: add Region, and store vip region status in it
- lvsp_manager: add LVSPManager.region
2019-03-13 18:28:48 -03:00
Luna
977fa95ff2
admin_api.features: delete vanity invites when guild loses feature
...
- guilds: make _vanity_inv -> vanity_invite exportable function
2019-03-13 05:07:10 -03:00
Luna
6763f2c501
guilds: add VANITY_URL feature check when editing vanity
2019-03-13 05:04:48 -03:00
Luna
afcdd145f4
emoji: add MORE_EMOJI feature support
...
bumps emoji limit to 200 for both static and animated, needs more
looking.
- storage: add Storage.has_feature
2019-03-13 05:03:26 -03:00
Luna
5c51894807
guilds: add failsafe check for same invite
2019-03-13 04:49:50 -03:00
Luna
f0d4c84e68
guilds: add implementation for vanity invites
...
I'm not proud of it, especially that we couldn't use much SQL power and
things are laid off to Storage calls. It works, though
- schemas: add VANITY_URL_PATCH
2019-03-13 04:48:25 -03:00
Luna
633cd730c0
guilds: add basic vanity urls
...
- add vanity_invites table
2019-03-13 04:28:23 -03:00
Luna
27a7c7e8ef
guilds: handle when j.icon is not present when creating guild
2019-02-07 15:43:16 -03:00
Luna
d2f004b080
guilds: handle removal of ask/sys channel
2019-02-04 21:27:12 -03:00
Luna
88d118799f
guilds: optimize create_guild_settings
...
we were inserting then updating when we could just insert with the
value, lol
2019-02-02 02:06:08 -03:00
Luna
53d7515f8c
all: update copyright year
2019-01-26 19:25:46 -03:00
Luna
2632d033fa
all: add GPL header
2018-12-07 02:14:58 -03:00
Luna
b7028d4a7d
guilds: use always_icon when updating guild icon
2018-12-06 01:12:32 -03:00
Luna
a36ea4a117
blueprints.guilds: use default value for roles.color
2018-12-02 22:49:08 -03:00
gabixdev
9b0171ad32
Add documented endpoint back
2018-12-03 01:52:36 +01:00
gabixdev
8f2ad0f33d
small fixes
2018-12-03 01:46:37 +01:00
Luna
bdee75fd78
guilds: use patterns for messages.content in search
2018-11-30 17:48:59 -03:00
Luna
eec5d2eb92
guilds, channels: fix search
2018-11-30 17:43:51 -03:00
Luna Mendes
a974ff34ba
guilds: add permission checking on get_guild
2018-11-21 20:48:02 -03:00
Luna Mendes
93e00315df
guild, channels: add dummy implementation for search
...
- schemas: add SEARCH_CHANNEL
- migration.scripts: add 5_add_messages_guild_id
- schema.sql: add messages.guild_id
2018-11-20 04:15:03 -03:00
Luna Mendes
432244263d
guilds: check channel link to guild on afk and system channels
2018-11-19 23:26:26 -03:00
Luna Mendes
630db1e1e9
images: add always_icon kwarg to put()
...
- guilds: use always_icon
2018-11-17 18:26:42 -03:00
Luna Mendes
49aa6cd495
blueprints.users: add user avatars
...
- images: add IconManager.update
- images: delete all other converted extension variants when deleting
2018-11-13 21:52:50 -03:00
Luna Mendes
5480a669a3
all: add guild icon support
...
- fix update_guild's methods
- fix update_guild's sql statements
- litecord: add images module
- schemas: add splash to GUILD_UPDATE
- schemas: add validate to INVITE
- manage.cmd.migration: add script 2
2018-11-13 21:12:40 -03:00
Luna Mendes
378809bdd6
all: misc fixes
...
- gateway.websocket: fix etf dict decode
- auth: better token parsing
- auth: fix new_discrim calc
- channel.messages: call _dm_pre_dispatch on get_messages
- channels: fix get_pins
- guilds: make sure guild owner has guild everyone role
- invites: replace sub_guild to sub
2018-11-02 19:14:41 -03:00
Luna Mendes
65b47e74bf
guild: add mod blueprint
...
to keep moderation-related routes in a single blueprint
2018-10-27 22:27:05 -03:00
Luna Mendes
8678c84355
roles: add GET /api/v6/guilds/:id/roles
...
- guild: add DELETE /api/v6/guilds/:id/bans/:uid
2018-10-27 22:16:03 -03:00