From b5cd39689de9cc154f3d1e196d4dcbfc78e8dc9f Mon Sep 17 00:00:00 2001 From: Edwin <60476129+Edwinexd@users.noreply.github.com> Date: Fri, 15 Jan 2021 17:13:15 +0100 Subject: [PATCH 1/4] Add parentheses where needed to avoid AttributeErrors --- bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: From 71e82af4598c4c2ef79b8eb1f1ac0021f81f2b2e Mon Sep 17 00:00:00 2001 From: Edwin <60476129+Edwinexd@users.noreply.github.com> Date: Fri, 15 Jan 2021 17:14:33 +0100 Subject: [PATCH 2/4] Update .version --- .version | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 0f8741d18a19bcfe86274289eb05106038281522 Mon Sep 17 00:00:00 2001 From: Edwin <60476129+Edwinexd@users.noreply.github.com> Date: Fri, 15 Jan 2021 17:15:39 +0100 Subject: [PATCH 3/4] 2.1.3 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)](#) From cd7f4449c52256e3a3bb9214e800b82c3fb7dd09 Mon Sep 17 00:00:00 2001 From: Edwin <60476129+Edwinexd@users.noreply.github.com> Date: Fri, 15 Jan 2021 17:19:21 +0100 Subject: [PATCH 4/4] 2.1.3 --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) 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