Changelog#
Info#
See also
Note
The library first started as a single file script that I didn’t make versions of. When I decided to turn it into a library, I’ve set the version number based on the amount of commits I have made since the start.
Glossary#
Releases#
v2.3.6#
Fixed voice not working due to Discord’s API changes.
v2.3.5#
Fixed
typechecked
module error
v2.3.4#
Fixed channel verification bug:
Fixes bug where messages try to be sent into channels that have not passed verification (complete button)
v2.3#
[Breaking change] Removed
exceptions
module, meaning that there are no DAFError derived exceptions from this version on. They are replaced with build-in Python exceptions.Automatic scheme generation and management:
daf.guild.AutoGUILD
class for auto-managed GUILD objects.daf.message.AutoCHANNEL
class for auto-managed channels inside message.
Debug levels:
Added deprecated to
TraceLEVELS
.Changed the
daf.core.run()
’s debug parameter to accept a value fromTraceLEVELS
, to dictate what level trace should be displayed.
Messages objects period automatically increases if it is less than slow-mode timeout.
The data_function’s input function can now also be async.
v2.2#
user_callback
parameter for functiondaf.core.run()
can now also be a regular function instead of justasync
.Deprecated
daf.dtypes.EMBED
, usediscord.Embed
instead.[Breaking change] Removed
get_sql_manager
function.daf.core.run()
:Added
logging
parameterDeprecated parameters
server_log_output
andsql_manager
.
Logging manager objects: LoggerJSON, LoggerCSV, LoggerSQL
New
daf.logging.get_logger()
function for retrieving the logger object used.daf.core.initialize()
for manual control of asyncio (same asdaf.core.run()
except it is async)- SQL:
SQL logging now supports Microsoft SQL Server, MySQL, PostgreSQL and SQLite databases.
[Breaking change]
LoggerSQL
’s parameters are re-arranged, new parameters of which, thedialect
(mssql, sqlite, mysql, postgresql) parameter must be passed.
- Development:
doc_category
decorator for automatic documentationRemoved
common
module and moved constants to appropriate modules
v2.1.4#
Bug fixes:
Fix incorrect parameter name in documentation
.
v2.1.3#
Bug fixes:
[Bug]: KeyError: 'code' on rate limit #198
.
v2.1.2#
Bug fixes:
#195 VoiceMESSAGE did not delete deleted channels.
Exception on initialization of static server list in case any of the messages had failed their initialization.
v2.1.1#
Fixed
[Bug]: Predefined servers' errors are not suppressed #189
.Support for readthedocs.
v2.1#
Changed the import
import framework
toimport daf
. Usingimport framework
is now deprecated.remove_after
parameter:Classes:
daf.guild.GUILD
,daf.guild.USER
,daf.message.TextMESSAGE
,daf.message.VoiceMESSAGE
,daf.message.DirectMESSAGE
now support the remove_after parameter which will remove the object from the shilling list when conditions met.
- Proxies:
Added support for using proxies. To use a proxy pass the
daf.run()
function with aproxy
parameter
- discord.EmbedField:
[Breaking change] Replaced discord.EmbedField with discord.EmbedField.
- timedelta:
start_period and end_period now support
timedelta
object to specify the send period. Use ofint
is deprecated[Potentially breaking change] Replaced
start_now
withstart_in
parameter, deprecated use of bool value.
- Channel checking:
daf.TextMESSAGE
anddaf.VoiceMESSAGE
now check if the given channels are actually inside the guild
- Optionals:
[Potentially breaking change] Made some functionality optional:
voice
,proxy
andsql
- to install usepip install discord-advert-framework[dependency here]
- CLIENT:
[Breaking change] Removed the CLIENT object, discord.Client is now used as the CLIENT class is no longer needed due to improved startup
- Bug fixes:
- Time slippage correction:
This occurred if too many messages were ready at once, which resulted in discord’s rate limit, causing a permanent slip.
- Slow mode correction:
Whenever a channel was in slow mode, it was not properly handled. This is now fixed.
v2.0#
New cool looking web documentation (the one you’re reading now)
Added volume parameter to
daf.VoiceMESSAGE
Changed
channel_ids
tochannels
fordaf.VoiceMESSAGE
anddaf.TextMESSAGE
. It can now also accept discord.<Type>Channel objects.Changed
user_id
/guild_id
tosnowflake
indaf.GUILD
anddaf.USER
. This parameter now also accept discord.Guild (daf.GUILD
) and discord.User (daf.USER
)Added
.update
method to some objects for allowing dynamic modifications of initialization parameters.daf.AUDIO
now also accepts a YouTube link for streaming YouTube videos.New Exceptions system - most functions now raise exceptions instead of just returning bool to allow better detection of errors.
Bug fixes and other small improvements.
v1.9.0#
Added support for logging into a SQL database (MS SQL Server only). See Relational Database Log (SQL).
daf.run()
function now accepts discord.Intents.daf.add_object()
anddaf.remove_object()
functions created to allow for dynamic modification of the shilling list.Other small improvements.
v1.8.1#
JSON file logging.
Automatic channel removal if channel get’s deleted and message removal if all channels are removed.
Improved debug messages.
v1.7.9#
daf.DirectMESSAGE
anddaf.USER
classes created for direct messaging.