Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feat] Role-reaction #3

Open
anhgelus opened this issue Apr 20, 2024 · 0 comments
Open

[Feat] Role-reaction #3

anhgelus opened this issue Apr 20, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@anhgelus
Copy link
Owner

Add role-reaction system with Discord's button.

This system must be edited with the new command general /role-reaction.

  • /role-reaction create - Create a new role-reaction interface
  • /role-reaction edit - Edit a role-reaction
  • /role-reaction show - Show every role-reaction interface
  • /role-reaction delete - Delete a role-reaction interface

Creates a new type RoleReactionInterface and RoleReaction:

type RoleReactionInterface struct {
	gorm.Model
	GuildID       string
	ChannelID     string
	MessageID     string
	RoleReactions []RoleReaction
}

type RoleReaction struct {
	gorm.Model
	RoleReactionInterfaceID uint
	Content                 string
	Emoji                   string
}

These new types must be compatible with the interface gokord.DataBase.

RoleReactionInterface must have a method called GenMessage which generates the message to send.

@anhgelus anhgelus added the enhancement New feature or request label Apr 20, 2024
@anhgelus anhgelus added this to the 0.3.0 milestone Apr 20, 2024
@anhgelus anhgelus removed this from the 0.3.0 milestone Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant