nyxx-discord / nyxx_extensions Goto Github PK
View Code? Open in Web Editor NEWExtensions subpackage for nyxx library
License: Apache License 2.0
Extensions subpackage for nyxx library
License: Apache License 2.0
Fixup nyxx version constraint to allow using with dev nyxx.
Hello,
I've discovered Nyxx recently and I love it.
One thing I'd like to see in this library is a sendReply()
method on the Message
class. When listening to the messageCreate
event, currently it is possible to achieve the same thing with event.message.channel.sendMessage()
but the problem is, the developer needs to manually specify the replyId:
parameter.
In my opinion, a sendReply()
method on the Message
class would make this a bit better. If this seems ok, then I'd like to make a PR implementing it.
Thanks.
Update emoji resource location in nyxx_extensions in emoji library.
Emzi updated and prepared new variants of emoji map and we can now use minified version to reduce network footprint
Ref:
Is your feature request related to a problem? Please describe.
Apparently at the moment it is not possible to clone a channel with all its permissions.
Describe the solution you'd like
It would be nice to implement the .clone() function to GuildChannel 's
Describe alternatives you've considered
There are no alternatives known to me.
Additional context
https://discord.js.org/docs/packages/discord.js/14.15.3/BaseGuildTextChannel:Class#clone
Implement new plugin system in nyxx_extensions where possible.
Currently, nyxx_extensions
doesn't have a well-defined folder structure and features are often implemented in their own file, with their own extension
s. This leads to the generated API documentation being hard to navigate, especially since many of these extensions lack documentation comments.
Therefore, I suggest we reorganise the package structure (without any breaking changes):
lib/src/extensions/*.dart
contains files each containing one extension
on one type or multiple closely related types (e.g partials and complete models) from nyxx
or otherwise, e.g DateTime
has extensions for formatting them according to TimestampStyle
s.lib/src/utils/
contains either files or directories, each containing extra classes or functions needed to implement the extensions in lib/extensions/
.For example, #29 would be organised as such:
computePermissions
function would be placed in lib/src/utils/compute_permissions.dart
.computePermissionsIn
method would be added to extension PartialMemberExtensions on PartialMember
, which would be placed in lib/src/extensions/member.dart
.computePermissionsFor
method would be added to extension GuildChannelExtensions on GuildChannel
, which would be placed in lib/src/extensions/guild_channel.dart
.These would all still be exported from lib/nyxx_extensions.dart
, leading to no visible breaking changes for users of the package.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.