aboutsummaryrefslogtreecommitdiff
path: root/discord
Commit message (Collapse)AuthorAgeFilesLines
* Changed discord.Client.event to debug log success instead of info log.espeonofespeonage2017-09-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | This is suggested to prevent spamming the console unnecesarilly. Info should be used to output information to the user that is important, but not a warning or an error. If I am bundling a bot as a modular package then it doesn't really make sense to spam their console with every time a coroutine is subscribed to, as it likely will not mean anything to the user. If they are interested in this, it would make more sense to just to enable debugging first. I have made this change, as I am writing a wrapper for this library for a private project, and that will handle dispatching events, thus, I do not need a prompt for each event that is subscribed to in this module outside of DEBUG. Currently, with logging set to INFO, I am getting 47 lines reading: INFO:discord.client:coroutine has successfully been registered as an event ...being output as my bot starts, and without having to disable INFO logging altogether, I am currently having to temporarily change the verbosity of the logger as the events are initialised, which is not desirable as it could potentially cover up any other INFO messages that would be useful to have output. Using a filter seems like a bit of a hacky workaround. If this isn't acceptable then another alternative would be to add a parameter to the constructor of discord.Client to enable or disable printing this information.
* Properly handle cases where a category is removed.Rapptz2017-09-211-1/+1
|
* Fix sorting for channels.Rapptz2017-09-211-5/+5
|
* [guild] use a defaultdict in by_categoryJake2017-09-201-8/+3
|
* Add webhook.urlrooni2017-09-181-0/+5
|
* Add an example for on_reaction_add waiting.Rapptz2017-09-181-0/+19
| | | | | Apparently people would rather read examples than the actual documentation.
* Change how coroutines are detected internally.Rapptz2017-09-161-3/+4
|
* Clarify VoiceClient.disconnect docs a little more.Rapptz2017-09-161-1/+1
|
* Fix typo in http.create_channelHarmon2017-09-131-2/+2
|
* Fix error when creating guild channels.Rapptz2017-09-131-2/+2
|
* [commands] Add CategoryChannelConverterRapptz2017-09-131-1/+42
|
* Add Guild.create_category.Rapptz2017-09-131-2/+12
| | | | An alias, Guild.create_category_channel is provided.
* Fix grammar in abc docs, add new implementationSteve C2017-09-131-4/+5
|
* Add category support.Rapptz2017-09-136-32/+238
| | | | | | | | | | | | | This adds: * CategoryChannel, which represents a category * Guild.by_category() which traverses the channels grouping by category * Guild.categories to get a list of categories * abc.GuildChannel.category to get the category a channel belongs to * sync_permissions keyword argument to abc.GuildChannel.edit to sync permissions with a pre-existing or new category * category keyword argument to abc.GuildChannel.edit to move a channel to a category
* [commands] Fix NameError when given an invalid prefix.Rapptz2017-09-121-1/+1
| | | | Closes #775
* Document new features for guilds.Rapptz2017-09-121-0/+2
|
* Fix crashing for now when a category is created.Rapptz2017-09-082-2/+7
| | | | A full implementation will come later.
* Fix docstrings for Webhook.sendRapptz2017-09-081-17/+20
|
* Attempt to change how member functions are detected for Member objectsRapptz2017-09-041-1/+1
|
* Fix __hash__ for Invite objects.Rapptz2017-09-041-0/+3
|
* [commands] Have (bot_)has_permissions provide better failure responsesReinaSakuraba2017-08-301-2/+21
|
* [commands] Add MissingPermissions and BotMissingPermissionsReinaSakuraba2017-08-301-1/+43
|
* Manually format reason parameter for kick and ban.Rapptz2017-08-301-2/+6
| | | | Related to: https://github.com/aio-libs/aiohttp/issues/2235
* Fix utils.get example.Rapptz2017-08-301-1/+1
|
* Sort roles by hierarchy instead of by ID.Rapptz2017-08-291-18/+9
| | | | Fixes #741
* Update embed property doc grammarSteve C2017-08-291-6/+6
|
* [commands] Add CooldownMapping.from_cooldown factory classmethod.Rapptz2017-08-271-0/+4
|
* [commands] Export cooldown classes as well.Rapptz2017-08-271-1/+1
|
* Add pinning to manage_messages docSteve C2017-08-271-1/+1
|
* Rename webhook parameters to payload to avoid shadowing.Rapptz2017-08-241-16/+16
| | | | The old names clashed with the `json` module.
* Webhook URLs can have dashes and underscores.Rapptz2017-08-221-1/+1
|
* Fix docstringEthan2017-08-221-1/+1
|
* Fix a couple docstringsSteve C2017-08-221-3/+3
|
* Fix multi-part sending with aiohttp in webhooks.Rapptz2017-08-221-0/+1
|
* Don't make session a keyword only argument.Rapptz2017-08-211-1/+1
|
* Add atomic keyword argument for member role editing operations.Rapptz2017-08-211-11/+33
| | | | | | | | | | | | | | | This affects: * Member.add_roles * Member.remove_roles This is the main attempt of fixing long standing bugs like #56. Since cache consistency is too hard to ask for due to eventual consistency and this generally being one of the only main roadblocks that the cache ruins, it's best to just implement it in terms of the atomic endpoint instead. Fixes #56
* Lazily fetch Emoji.roles and Emoji.guild to prevent memory leaks.Rapptz2017-08-211-11/+21
| | | | | | | The global emoji cache still managed to somehow cause memory leaks. By storing IDs directly and lazily evaluating them when needed this essentially removes all strong references to Guild objects which would cause an explosion in memory usage.
* Game objects are really dumb.Rapptz2017-08-211-4/+4
|
* Fix some docstrings.Rapptz2017-08-211-5/+3
|
* Fix Webhook.execute alias.Rapptz2017-08-211-2/+3
|
* Add webhook support.Rapptz2017-08-218-6/+789
| | | | | | | Allows for usage of either `requests` and `aiohttp` when used in "Standalone" mode. Fixes #704
* Use time.monotonic instead of time.time for heartbeat code.Rapptz2017-08-191-5/+5
|
* Consume remaining keyword arguments in Game constructor.Rapptz2017-08-191-1/+1
|
* Update system_content strings for MessageType.new_member.Rapptz2017-08-171-22/+40
|
* Remove incorrect extraneous usage of reason keyword argument.Rapptz2017-08-171-1/+1
| | | | Fixes #726
* Add support for Guild.system_channelRapptz2017-08-173-2/+26
|
* Add default type for Game.Rapptz2017-08-161-7/+7
| | | | Good meme.
* use cdn url for custom emojisAshton Tito2017-08-161-1/+1
|
* Add Client.latency, AutoShardedClient.latency and latencies.Rapptz2017-08-153-0/+29
| | | | | | This should allow an easier way to query the Discord protocol gateway latency, defined by the difference HEARTBEAT_ACK between and the last sent HEARTBEAT.
* Remove reason keyword argument from message deletion.Rapptz2017-08-153-25/+13
| | | | | | | | | | | Apparently this is unsupported. Affected functions include: * abc.Messageable.send * Message.delete * TextChannel.delete_messages * TextChannel.purge