Make new commands and examples

This commit is contained in:
2024-07-10 15:53:13 -04:00
parent 319c00f90b
commit dc90da36df
5 changed files with 361 additions and 0 deletions

View File

@ -0,0 +1,15 @@
local SlashCommandTools = require('discordia-slash').util.tools()
local GetProfilePictureCommand = SlashCommandTools.userCommand('Get profile picture', 'Gets user avatar')
local function Callback(Interaction, Command, Member)
local AvatarURL = Member:getAvatarURL(1024)
if AvatarURL then
return Interaction:reply(AvatarURL, true)
end
end
return {
Command = GetProfilePictureCommand,
Callback = Callback
}