Browse Source

Update copyright year to 2017.

pull/468/head
Rapptz 8 years ago
parent
commit
ff9f5749e1
  1. 2
      LICENSE
  2. 4
      discord/__init__.py
  3. 2
      discord/abc.py
  4. 2
      discord/calls.py
  5. 2
      discord/channel.py
  6. 2
      discord/client.py
  7. 2
      discord/colour.py
  8. 2
      discord/compat.py
  9. 2
      discord/context_managers.py
  10. 2
      discord/embeds.py
  11. 2
      discord/emoji.py
  12. 2
      discord/enums.py
  13. 2
      discord/errors.py
  14. 2
      discord/ext/__init__.py
  15. 2
      discord/ext/commands/__init__.py
  16. 2
      discord/ext/commands/bot.py
  17. 2
      discord/ext/commands/context.py
  18. 2
      discord/ext/commands/converter.py
  19. 2
      discord/ext/commands/cooldowns.py
  20. 2
      discord/ext/commands/core.py
  21. 2
      discord/ext/commands/errors.py
  22. 2
      discord/ext/commands/formatter.py
  23. 2
      discord/ext/commands/view.py
  24. 2
      discord/game.py
  25. 2
      discord/gateway.py
  26. 2
      discord/guild.py
  27. 2
      discord/http.py
  28. 2
      discord/invite.py
  29. 2
      discord/iterators.py
  30. 2
      discord/member.py
  31. 2
      discord/message.py
  32. 2
      discord/mixins.py
  33. 2
      discord/object.py
  34. 10
      discord/opus.py
  35. 2
      discord/permissions.py
  36. 2
      discord/reaction.py
  37. 2
      discord/relationship.py
  38. 2
      discord/role.py
  39. 2
      discord/shard.py
  40. 2
      discord/state.py
  41. 2
      discord/user.py
  42. 2
      discord/utils.py
  43. 2
      discord/voice_client.py
  44. 2
      docs/conf.py

2
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"),

4
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

2
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"),

2
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"),

2
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"),

2
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"),

2
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"),

2
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"),

2
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"),

2
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"),

2
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"),

2
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"),

2
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"),

2
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.
"""

2
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.
"""

2
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"),

2
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"),

2
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"),

2
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"),

2
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"),

2
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"),

2
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"),

2
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"),

2
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"),

2
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"),

2
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"),

2
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"),

2
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"),

2
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"),

2
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"),

2
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"),

2
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"),

2
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"),

10
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)

2
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"),

2
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"),

2
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"),

2
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"),

2
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"),

2
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"),

2
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"),

2
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"),

2
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"),

2
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

Loading…
Cancel
Save