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#
- [Breaking change]#
Means that the change will break functionality from previous version.
Releases#
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 daf.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.