Skip to content

Commit 94cdf1b

Browse files
committed
Fixed missing attributes in live view
1 parent 8ec0b3b commit 94cdf1b

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

docs/source/changelog.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ Glossary
3737
Releases
3838
---------------------
3939

40+
v3.1.1
41+
===================
42+
- Fixed guild and text channels not fully visible in property view of GUI.
43+
44+
4045
v3.1.0
4146
===================
4247
- Compatible with Python 3.12

src/daf/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@
1717
from .remote import *
1818

1919

20-
VERSION = "3.1.0"
20+
VERSION = "3.1.1"

src/daf_gui/tod_extensions/loader.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,22 @@ def register_conversions():
116116
# GUILD
117117
register_conv_guild()
118118

119+
# PyCord
120+
reg_conv_pycord()
121+
119122
sql = daf.sql
120123
if sql.SQL_INSTALLED:
121124
register_conv_sql(sql)
122125

123126

127+
def reg_conv_pycord():
128+
for cls in (discord.TextChannel, discord.VoiceChannel, discord.Thread, discord.User, discord.Guild):
129+
register_object_objectinfo_rule(
130+
cls,
131+
name="name",
132+
id="id"
133+
)
134+
124135
def register_conv_clients():
125136
m = {k: k for k in daf.client.ACCOUNT.__init__.__annotations__}
126137
m["token"] = "_token"

0 commit comments

Comments
 (0)