Discord /invite command #294
Replies: 4 comments 9 replies
-
|
I decided to take a crack at implementing this myself, with my absolute lack of experience with both Go and the Discord API. I think I eventually managed to figure it out, but I'm getting this error: Edit: Should've also mentioned the built-in invite feature doesn't seem to work either. Maybe I made a mistake compiling it? |
Beta Was this translation helpful? Give feedback.
-
|
I believe this should be functional if compiled correctly (not sure what I'm doing wrong there but I don't have a Linux environment atm so it could just be a problem related to me using Windows) For now I have just one option for the user to be invited, but I commented some [hopefully functional] code for the other options to potentially add in the future. Edit: I just added in the check for admin and it appears to be working, but my test environment is a discord server with only two users, so might be worth some further testing or some looking over by someone who understands the code better, but I'm pretty sure I did it right. I just need to add the response messages in discord and then see if I can figure out if I can get it to compile properly and run the whole thing. Also small QoL change - I added a status message, since that's fairly standard practice for Discord bots now. It will display a status of "Playing /start" using the config for start_command https://github.com/VioletLeporid/jfa-go/blob/main/discord.go |
Beta Was this translation helpful? Give feedback.
-
|
Okay I spun up a VM and I'm also having issues compiling on Ubuntu, here's the error I get from using followed by several references but the main one is And this is what I get from followed again by several references, most of which are I'm not sure what I'm doing wrong here. I can download the release binary and it runs fine, but I seem to be unable to make one myself using either method on Windows or Ubuntu |
Beta Was this translation helpful? Give feedback.
-
|
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
The current Discord integration is great, but one QoL feature that could be added is an admin-only command for sending invites. It could be set to only accept the command from the discord account that is linked to the Jellyfin Admin account, and allow generating and sending invite links directly through discord rather than using the web interface. An example command might look like this:
/invite <username> <profile> <label> <expiration>with only the username field being required. This feature would allow interacting with jfa-go exclusively through discord after initial setup.
Beta Was this translation helpful? Give feedback.
All reactions