diff --git a/LICENSE b/LICENSE index 1d9a5d0b1..f7befeaf9 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2015-2016 Rapptz +Copyright (c) 2015-2017 Rapptz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), diff --git a/discord/__init__.py b/discord/__init__.py index 9624f2e9e..7ecad72c4 100644 --- a/discord/__init__.py +++ b/discord/__init__.py @@ -6,7 +6,7 @@ Discord API Wrapper A basic wrapper for the Discord API. -:copyright: (c) 2015-2016 Rapptz +:copyright: (c) 2015-2017 Rapptz :license: MIT, see LICENSE for more details. """ @@ -14,7 +14,7 @@ A basic wrapper for the Discord API. __title__ = 'discord' __author__ = 'Rapptz' __license__ = 'MIT' -__copyright__ = 'Copyright 2015-2016 Rapptz' +__copyright__ = 'Copyright 2015-2017 Rapptz' __version__ = '1.0.0a0' from .client import Client, AppInfo, ChannelPermissions diff --git a/discord/abc.py b/discord/abc.py index e8ca3db47..4b2f6d185 100644 --- a/discord/abc.py +++ b/discord/abc.py @@ -3,7 +3,7 @@ """ The MIT License (MIT) -Copyright (c) 2015-2016 Rapptz +Copyright (c) 2015-2017 Rapptz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), diff --git a/discord/calls.py b/discord/calls.py index 5b181d758..c8670b3bc 100644 --- a/discord/calls.py +++ b/discord/calls.py @@ -3,7 +3,7 @@ """ The MIT License (MIT) -Copyright (c) 2015-2016 Rapptz +Copyright (c) 2015-2017 Rapptz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), diff --git a/discord/channel.py b/discord/channel.py index 6f4c5659b..8699c25e8 100644 --- a/discord/channel.py +++ b/discord/channel.py @@ -2,7 +2,7 @@ """ The MIT License (MIT) -Copyright (c) 2015-2016 Rapptz +Copyright (c) 2015-2017 Rapptz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), diff --git a/discord/client.py b/discord/client.py index 725c0e77d..4962d1e40 100644 --- a/discord/client.py +++ b/discord/client.py @@ -3,7 +3,7 @@ """ The MIT License (MIT) -Copyright (c) 2015-2016 Rapptz +Copyright (c) 2015-2017 Rapptz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), diff --git a/discord/colour.py b/discord/colour.py index db75ad8af..b8ee5dae8 100644 --- a/discord/colour.py +++ b/discord/colour.py @@ -3,7 +3,7 @@ """ The MIT License (MIT) -Copyright (c) 2015-2016 Rapptz +Copyright (c) 2015-2017 Rapptz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), diff --git a/discord/compat.py b/discord/compat.py index 2cb2ec982..432942545 100644 --- a/discord/compat.py +++ b/discord/compat.py @@ -2,7 +2,7 @@ """ The MIT License (MIT) -Copyright (c) 2015-2016 Rapptz +Copyright (c) 2015-2017 Rapptz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), diff --git a/discord/context_managers.py b/discord/context_managers.py index 83398f13e..a5f891b38 100644 --- a/discord/context_managers.py +++ b/discord/context_managers.py @@ -3,7 +3,7 @@ """ The MIT License (MIT) -Copyright (c) 2015-2016 Rapptz +Copyright (c) 2015-2017 Rapptz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), diff --git a/discord/embeds.py b/discord/embeds.py index c9ff36ed9..9d3d604ea 100644 --- a/discord/embeds.py +++ b/discord/embeds.py @@ -3,7 +3,7 @@ """ The MIT License (MIT) -Copyright (c) 2015-2016 Rapptz +Copyright (c) 2015-2017 Rapptz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), diff --git a/discord/emoji.py b/discord/emoji.py index f07b61a73..ff839c4d1 100644 --- a/discord/emoji.py +++ b/discord/emoji.py @@ -3,7 +3,7 @@ """ The MIT License (MIT) -Copyright (c) 2015-2016 Rapptz +Copyright (c) 2015-2017 Rapptz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), diff --git a/discord/enums.py b/discord/enums.py index f0acff111..366aca58d 100644 --- a/discord/enums.py +++ b/discord/enums.py @@ -3,7 +3,7 @@ """ The MIT License (MIT) -Copyright (c) 2015-2016 Rapptz +Copyright (c) 2015-2017 Rapptz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), diff --git a/discord/errors.py b/discord/errors.py index 795c0bf69..a31ccd5e4 100644 --- a/discord/errors.py +++ b/discord/errors.py @@ -3,7 +3,7 @@ """ The MIT License (MIT) -Copyright (c) 2015-2016 Rapptz +Copyright (c) 2015-2017 Rapptz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), diff --git a/discord/ext/__init__.py b/discord/ext/__init__.py index af6a00881..73194d95d 100644 --- a/discord/ext/__init__.py +++ b/discord/ext/__init__.py @@ -6,7 +6,7 @@ discord.py extensions Extensions for the discord.py library live in this namespace. -:copyright: (c) 2016 Rapptz +:copyright: (c) 2017 Rapptz :license: MIT, see LICENSE for more details. """ diff --git a/discord/ext/commands/__init__.py b/discord/ext/commands/__init__.py index 084d04879..b102885c8 100644 --- a/discord/ext/commands/__init__.py +++ b/discord/ext/commands/__init__.py @@ -6,7 +6,7 @@ discord.ext.commands An extension module to facilitate creation of bot commands. -:copyright: (c) 2016 Rapptz +:copyright: (c) 2017 Rapptz :license: MIT, see LICENSE for more details. """ diff --git a/discord/ext/commands/bot.py b/discord/ext/commands/bot.py index 56c9c1539..17772cc5e 100644 --- a/discord/ext/commands/bot.py +++ b/discord/ext/commands/bot.py @@ -3,7 +3,7 @@ """ The MIT License (MIT) -Copyright (c) 2015-2016 Rapptz +Copyright (c) 2015-2017 Rapptz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), diff --git a/discord/ext/commands/context.py b/discord/ext/commands/context.py index 1ac4ddff1..f28b9ffa2 100644 --- a/discord/ext/commands/context.py +++ b/discord/ext/commands/context.py @@ -2,7 +2,7 @@ """ The MIT License (MIT) -Copyright (c) 2015-2016 Rapptz +Copyright (c) 2015-2017 Rapptz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), diff --git a/discord/ext/commands/converter.py b/discord/ext/commands/converter.py index 4284fa59a..90fee6da4 100644 --- a/discord/ext/commands/converter.py +++ b/discord/ext/commands/converter.py @@ -3,7 +3,7 @@ """ The MIT License (MIT) -Copyright (c) 2015-2016 Rapptz +Copyright (c) 2015-2017 Rapptz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), diff --git a/discord/ext/commands/cooldowns.py b/discord/ext/commands/cooldowns.py index 52a5be308..ebcdd69e4 100644 --- a/discord/ext/commands/cooldowns.py +++ b/discord/ext/commands/cooldowns.py @@ -2,7 +2,7 @@ """ The MIT License (MIT) -Copyright (c) 2015-2016 Rapptz +Copyright (c) 2015-2017 Rapptz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), diff --git a/discord/ext/commands/core.py b/discord/ext/commands/core.py index c3e2b4133..faa89af90 100644 --- a/discord/ext/commands/core.py +++ b/discord/ext/commands/core.py @@ -3,7 +3,7 @@ """ The MIT License (MIT) -Copyright (c) 2015-2016 Rapptz +Copyright (c) 2015-2017 Rapptz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), diff --git a/discord/ext/commands/errors.py b/discord/ext/commands/errors.py index b42b87e92..5aa6d1649 100644 --- a/discord/ext/commands/errors.py +++ b/discord/ext/commands/errors.py @@ -2,7 +2,7 @@ """ The MIT License (MIT) -Copyright (c) 2015-2016 Rapptz +Copyright (c) 2015-2017 Rapptz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), diff --git a/discord/ext/commands/formatter.py b/discord/ext/commands/formatter.py index 0b12df511..fb883d33e 100644 --- a/discord/ext/commands/formatter.py +++ b/discord/ext/commands/formatter.py @@ -3,7 +3,7 @@ """ The MIT License (MIT) -Copyright (c) 2015-2016 Rapptz +Copyright (c) 2015-2017 Rapptz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), diff --git a/discord/ext/commands/view.py b/discord/ext/commands/view.py index c1a19ba00..acde0b75b 100644 --- a/discord/ext/commands/view.py +++ b/discord/ext/commands/view.py @@ -2,7 +2,7 @@ """ The MIT License (MIT) -Copyright (c) 2015-2016 Rapptz +Copyright (c) 2015-2017 Rapptz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), diff --git a/discord/game.py b/discord/game.py index aefc6efc7..2cb3587ad 100644 --- a/discord/game.py +++ b/discord/game.py @@ -3,7 +3,7 @@ """ The MIT License (MIT) -Copyright (c) 2015-2016 Rapptz +Copyright (c) 2015-2017 Rapptz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), diff --git a/discord/gateway.py b/discord/gateway.py index 3d9226605..e88021c9c 100644 --- a/discord/gateway.py +++ b/discord/gateway.py @@ -3,7 +3,7 @@ """ The MIT License (MIT) -Copyright (c) 2015-2016 Rapptz +Copyright (c) 2015-2017 Rapptz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), diff --git a/discord/guild.py b/discord/guild.py index 509d90664..68c7a697e 100644 --- a/discord/guild.py +++ b/discord/guild.py @@ -3,7 +3,7 @@ """ The MIT License (MIT) -Copyright (c) 2015-2016 Rapptz +Copyright (c) 2015-2017 Rapptz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), diff --git a/discord/http.py b/discord/http.py index db6b2969e..c1cbd4f23 100644 --- a/discord/http.py +++ b/discord/http.py @@ -3,7 +3,7 @@ """ The MIT License (MIT) -Copyright (c) 2015-2016 Rapptz +Copyright (c) 2015-2017 Rapptz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), diff --git a/discord/invite.py b/discord/invite.py index e6c8e295b..31f3fd6f9 100644 --- a/discord/invite.py +++ b/discord/invite.py @@ -3,7 +3,7 @@ """ The MIT License (MIT) -Copyright (c) 2015-2016 Rapptz +Copyright (c) 2015-2017 Rapptz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), diff --git a/discord/iterators.py b/discord/iterators.py index b8a13d013..5aa780898 100644 --- a/discord/iterators.py +++ b/discord/iterators.py @@ -3,7 +3,7 @@ """ The MIT License (MIT) -Copyright (c) 2015-2016 Rapptz +Copyright (c) 2015-2017 Rapptz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), diff --git a/discord/member.py b/discord/member.py index 4c3cf4ab0..3c04ebee1 100644 --- a/discord/member.py +++ b/discord/member.py @@ -3,7 +3,7 @@ """ The MIT License (MIT) -Copyright (c) 2015-2016 Rapptz +Copyright (c) 2015-2017 Rapptz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), diff --git a/discord/message.py b/discord/message.py index 151744f88..acf4da2ce 100644 --- a/discord/message.py +++ b/discord/message.py @@ -3,7 +3,7 @@ """ The MIT License (MIT) -Copyright (c) 2015-2016 Rapptz +Copyright (c) 2015-2017 Rapptz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), diff --git a/discord/mixins.py b/discord/mixins.py index a0cf04802..8dd1cef5a 100644 --- a/discord/mixins.py +++ b/discord/mixins.py @@ -3,7 +3,7 @@ """ The MIT License (MIT) -Copyright (c) 2015-2016 Rapptz +Copyright (c) 2015-2017 Rapptz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), diff --git a/discord/object.py b/discord/object.py index ad201d040..1044abad2 100644 --- a/discord/object.py +++ b/discord/object.py @@ -2,7 +2,7 @@ """ The MIT License (MIT) -Copyright (c) 2015-2016 Rapptz +Copyright (c) 2015-2017 Rapptz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), diff --git a/discord/opus.py b/discord/opus.py index 5869599f8..911501c13 100644 --- a/discord/opus.py +++ b/discord/opus.py @@ -3,7 +3,7 @@ """ The MIT License (MIT) -Copyright (c) 2015-2016 Rapptz +Copyright (c) 2015-2017 Rapptz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), @@ -238,7 +238,7 @@ class Encoder: if ret < 0: log.info('error has happened in set_bandwidth') raise OpusError(ret) - + def set_signal_type(self, req): if req not in signal_ctl: raise KeyError('%r is not a valid signal setting. Try one of: %s' % (req, ','.join(signal_ctl))) @@ -252,14 +252,14 @@ class Encoder: def set_fec(self, enabled=True): ret = _lib.opus_encoder_ctl(self._state, CTL_SET_FEC, 1 if enabled else 0) - + if ret < 0: log.info('error has happened in set_fec') raise OpusError(ret) - + def set_expected_packet_loss_percent(self, percentage): ret = _lib.opus_encoder_ctl(self._state, CTL_SET_PLP, min(100, max(0, int(percentage * 100)))) - + if ret < 0: log.info('error has happened in set_expected_packet_loss_percent') raise OpusError(ret) diff --git a/discord/permissions.py b/discord/permissions.py index 2121243d1..8970ce4ce 100644 --- a/discord/permissions.py +++ b/discord/permissions.py @@ -3,7 +3,7 @@ """ The MIT License (MIT) -Copyright (c) 2015-2016 Rapptz +Copyright (c) 2015-2017 Rapptz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), diff --git a/discord/reaction.py b/discord/reaction.py index 4ec2fd750..b5533776d 100644 --- a/discord/reaction.py +++ b/discord/reaction.py @@ -3,7 +3,7 @@ """ The MIT License (MIT) -Copyright (c) 2015-2016 Rapptz +Copyright (c) 2015-2017 Rapptz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), diff --git a/discord/relationship.py b/discord/relationship.py index a9132aee2..575627e97 100644 --- a/discord/relationship.py +++ b/discord/relationship.py @@ -3,7 +3,7 @@ """ The MIT License (MIT) -Copyright (c) 2015-2016 Rapptz +Copyright (c) 2015-2017 Rapptz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), diff --git a/discord/role.py b/discord/role.py index dd39a02e3..fd07dd784 100644 --- a/discord/role.py +++ b/discord/role.py @@ -3,7 +3,7 @@ """ The MIT License (MIT) -Copyright (c) 2015-2016 Rapptz +Copyright (c) 2015-2017 Rapptz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), diff --git a/discord/shard.py b/discord/shard.py index e5a6111dc..904fd32c4 100644 --- a/discord/shard.py +++ b/discord/shard.py @@ -3,7 +3,7 @@ """ The MIT License (MIT) -Copyright (c) 2015-2016 Rapptz +Copyright (c) 2015-2017 Rapptz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), diff --git a/discord/state.py b/discord/state.py index 542d18482..5ccee4e0a 100644 --- a/discord/state.py +++ b/discord/state.py @@ -3,7 +3,7 @@ """ The MIT License (MIT) -Copyright (c) 2015-2016 Rapptz +Copyright (c) 2015-2017 Rapptz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), diff --git a/discord/user.py b/discord/user.py index f097ddab3..789167be0 100644 --- a/discord/user.py +++ b/discord/user.py @@ -3,7 +3,7 @@ """ The MIT License (MIT) -Copyright (c) 2015-2016 Rapptz +Copyright (c) 2015-2017 Rapptz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), diff --git a/discord/utils.py b/discord/utils.py index 0befa1cfa..1db8e4e09 100644 --- a/discord/utils.py +++ b/discord/utils.py @@ -3,7 +3,7 @@ """ The MIT License (MIT) -Copyright (c) 2015-2016 Rapptz +Copyright (c) 2015-2017 Rapptz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), diff --git a/discord/voice_client.py b/discord/voice_client.py index 168ff0900..c126f2976 100644 --- a/discord/voice_client.py +++ b/discord/voice_client.py @@ -3,7 +3,7 @@ """ The MIT License (MIT) -Copyright (c) 2015-2016 Rapptz +Copyright (c) 2015-2017 Rapptz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), diff --git a/docs/conf.py b/docs/conf.py index 0d4a84d9d..f46aadc9e 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -67,7 +67,7 @@ master_doc = 'index' # General information about the project. project = u'discord.py' -copyright = u'2015, Rapptz' +copyright = u'2015-2017, Rapptz' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the