diff --git a/.version b/.version index 8f9174b4..ac2cdeba 100644 --- a/.version +++ b/.version @@ -1 +1 @@ -2.1.2 \ No newline at end of file +2.1.3 diff --git a/CHANGELOG.md b/CHANGELOG.md index cf6b34cb..04ed6f37 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,7 @@ # Reaction Light - Changelog +### 2.1.3 +- Fix errors occuring during reaction-role message creation/editing ([#54](https://github.com/eibex/reaction-light/issues/54) closed by [#55](https://github.com/eibex/reaction-light/pull/55) by [Edwinexd](https://github.com/Edwinexd)) + ### 2.1.2 - Fix database errors resulting in guilds not being cleaned up diff --git a/README.md b/README.md index 913f7176..13e9a3dc 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # Reaction Light - Discord Role Bot -[![Reaction Light 2.1.2](https://img.shields.io/badge/Reaction%20Light-2.1.2-yellow.svg)](https://github.com/eibex/reaction-light/blob/master/CHANGELOG.md) +[![Reaction Light 2.1.3](https://img.shields.io/badge/Reaction%20Light-2.1.3-yellow.svg)](https://github.com/eibex/reaction-light/blob/master/CHANGELOG.md) [![Python 3.5.3+](https://img.shields.io/badge/python-3.5.3+-blue.svg)](#) [![discord.py 1.5.0+](https://img.shields.io/badge/discord.py-1.5.0+-blue.svg)](#) diff --git a/bot.py b/bot.py index ced6c840..34adcb42 100644 --- a/bot.py +++ b/bot.py @@ -412,7 +412,7 @@ async def on_message(message): server = await getguild(message.guild.id) bot_user = server.get_member(bot.user.id) - bot_permissions = await getchannel(target_channel).permissions_for( + bot_permissions = (await getchannel(target_channel)).permissions_for( bot_user ) writable = bot_permissions.read_messages @@ -989,7 +989,7 @@ async def set_systemchannel(ctx): server = await getguild(guild_id) bot_user = server.get_member(bot.user.id) - bot_permissions = await getchannel(system_channel).permissions_for(bot_user) + bot_permissions = (await getchannel(system_channel)).permissions_for(bot_user) writable = bot_permissions.read_messages readable = bot_permissions.view_channel if not writable or not readable: