Sha256: 8e5eb25ea46f020dd1b55a2b0bce87c878b309b4c46e4bc3fb215c4d4b28c495
Contents?: true
Size: 978 Bytes
Versions: 5
Compression:
Stored size: 978 Bytes
Contents
require "discorb" client = Discorb::Client.new client.once :ready do puts "Logged in as #{client.user}" end client.user_command("Info", guild_ids: [857373681096327180]) do |interaction| interaction.post(embed: Discorb::Embed.new( "Information of #{interaction.target.to_s_user}", fields: [ Discorb::Embed::Field.new("User", interaction.target.to_s_user), Discorb::Embed::Field.new("ID", interaction.target.id), Discorb::Embed::Field.new("Bot", interaction.target.bot? ? "Yes" : "No"), Discorb::Embed::Field.new("Joined at", interaction.target.joined_at.to_df("F")), Discorb::Embed::Field.new("Created at", interaction.target.created_at.to_df("F")), ], thumbnail: interaction.target.avatar&.url, ), hide: true) end client.run(ENV["DISCORD_BOT_TOKEN"])
Version data entries
5 entries across 5 versions & 1 rubygems