Skip to content

Commit 11f01ca

Browse files
committed
add message_content intent, bump disnake requirement
1 parent 4e87986 commit 11f01ca

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Simple mod-mail system for Discord. See `config.ini.example` for configuration, copy to `config.ini` to use.
44

5-
Python 3.6 or later is required. discord.py 1.7 or later is required.
5+
Python 3.6 or later is required. disnake 2.8 or later is required.
66

77
Command usage to reply is only limited to the channel used for mod-mail, and not to users with specific roles. Don't allow everyone to send messages to the mod-mail channel because there is no role-check.
88

requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
disnake>=2.4
1+
disnake>=2.8

run.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from typing import List, Optional, Tuple
1818

1919

20-
version = '1.3.12'
20+
version = '1.3.13'
2121

2222
is_docker = environ.get('IS_DOCKER', 0)
2323
data_dir = environ.get('MODMAIL_DATA_DIR', '.')
@@ -57,7 +57,7 @@
5757

5858
post_startup_message = config['Main'].getboolean('post_startup_message', fallback=True)
5959

60-
intents = disnake.Intents(guilds=True, members=True, messages=True, dm_typing=True)
60+
intents = disnake.Intents(guilds=True, members=True, messages=True, message_content=True, dm_typing=True)
6161

6262
client = disnake.Client(activity=disnake.Game(name=config['Main']['playing']), max_messages=100, intents=intents)
6363
client.channel: disnake.TextChannel

tag.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/sh
2-
for f in 1 1.3 1.3.12
2+
for f in 1 1.3 1.3.13
33
do
44
echo "Tagging latest -> $f"
55
docker tag ianburgwin/discord-mod-mail:latest ianburgwin/discord-mod-mail:$f

0 commit comments

Comments
 (0)