Add support for accessing config by ids (#3022)

* Add support for accessing config by ids

* update-changelog with methods
This commit is contained in:
Michael H
2019-10-22 16:25:01 -04:00
committed by GitHub
parent ee293876d9
commit 17c8cbb057
2 changed files with 93 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
Adds methods to Config for accessing things by id without mocked objects
- Config.guild_from_id
- Config.user_from_id
- Config.role_from_id
- Config.channel_from_id
- Config.member_from_ids
- This one requires multiple ids, one for the guild, one for the user
- Consequence of discord's object model