fancy printer list, time to get ready for twenty10
This commit is contained in:
parent
c26b350e49
commit
319e30e3d4
5 changed files with 49 additions and 1 deletions
23
application_cmds/printer-status.gd
Normal file
23
application_cmds/printer-status.gd
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
extends RefCounted
|
||||
|
||||
#func on_ready(main, bot: DiscordBot) -> void:
|
||||
# pass
|
||||
#
|
||||
#func on_autocomplete(main, bot: DiscordBot, interaction: DiscordInteraction, options: Array) -> void:
|
||||
# pass
|
||||
|
||||
func execute(main, bot: DiscordBot, interaction: DiscordInteraction, options: Array) -> void:
|
||||
|
||||
var response : String = "Listing printers..."
|
||||
var embed = Embed.new().set_description(Library.list_printers())
|
||||
|
||||
interaction.reply({
|
||||
"content": response,
|
||||
"embeds":[embed]
|
||||
})
|
||||
pass
|
||||
|
||||
var data = ApplicationCommand.new()\
|
||||
.set_name("printer-status")\
|
||||
.set_description("view the status of all printers")\
|
||||
|
||||
1
application_cmds/printer-status.gd.uid
Normal file
1
application_cmds/printer-status.gd.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://ble32gllmjgwm
|
||||
Loading…
Add table
Add a link
Reference in a new issue