discord-webhook:Java Discord Webhook

  • a0_259231
    了解作者
  • 19.3KB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-05-21 07:26
    上传日期
不和谐网钩 Maven < dependency> < groupId>com.github.DarthPresident</ groupId> < artifactId>discord-webhook</ artifactId> < version>LATEST</ version> </ dependency> < repositories> < repository> < id>jitpack.io</ id> < url>ht
discord-webhook-master.zip
内容介绍
# Discord-webhook ## Maven ```xml <dependency> <groupId>com.github.DarthPresident</groupId> <artifactId rel='nofollow' onclick='return false;'>discord-webhook</artifactId> <version>LATEST</version> </dependency> <repositories> <repository> <id>jitpack.io</id> <url>https://jitpack.io</url> </repository> </repositories> ``` ## Example ```xml import java.util.LinkedList; import java.util.List; public class Main { public static void main(String[] args) { //Creating a field, you can do as many, as you need DiscordField field = new DiscordField( "name of field", // "value of field", true); //or false List<DiscordField> fields = new LinkedList<>(); fields.add(field); //Creating a footer DiscordFooter footer = new DiscordFooter( "your icon url", "footer text", "proxy icon url"); //Creating a thumbnail DiscordThumbnail thumbnail = new DiscordThumbnail( "your icon url", "proxy icon url", 5000, //use int that you need 5000); //use int that you need //Creating a image DiscordImage image = new DiscordImage( "your image url", "proxy icon url", 5000, //use int that you need 5000); //use int that you need //Creating a video DiscordVideo video = new DiscordVideo( "your video url", 5000, //use int that you need 5000); //use int that you need //Creating a embeds DiscordEmbed embed = new DiscordEmbed( "embed title", "embed url", "embed description", 5000, //use int that you need footer, thumbnail, fields); //OR DiscordEmbed embed = new DiscordEmbed( "embed title", "embed url", "embed description", 5000, //use int that you need footer, image, fields); //OR DiscordEmbed embed = new DiscordEmbed( "embed title", "embed url", "embed description", 5000, //use int that you need footer, video, fields); //OR DiscordEmbed embed = new DiscordEmbed( "embed title", "embed url", "embed description", 5000, //use int that you need footer, thumbnail, image, fields); //OR DiscordEmbed embed = new DiscordEmbed( "embed title", "embed url", "embed description", 5000, //use int that you need footer, thumbnail, video, fields); List<DiscordEmbed> embeds = new LinkedList<>(); embeds.add(embed); //Publising DiscordWebhook webhook = new DiscordWebhook( "webhook content", "webhook username", "avatar url", embeds); webhook.execute("your webhook url"); } } ```
评论
    相关推荐
    • Faweezy.github.io
      Faweezy.github.io 以上所有文件夹和文档都用于我们几个月前提交的我的protfolio网站。 要查看我今年的工作,请从文件夹开头开始。 然后移到“项目”文件夹。 然后移至编码练习(js)文件夹 最后是Backend文件夹...
    • GitHubDemo
      GitHub演示 直到äskskling Som en vis dam sa engångi tiden。 普萨尔直至älskling。
    • Open GitHub in IDE-crx插件
      在您的IDE中打开GitHub文件链接 如果您正在使用的存储库已克隆,此扩展名使您可以直接从GitHubIDE中打开文件。 显示文件片段时,IDE将打开文件,然后将光标置于所需的行。 支持的IDE:-VS Code-VSCodium-VS Code ...
    • Github Web IDE-crx插件
      在在线Web IDE中打开Github存储库 该扩展为任何Github存储库添加了一个新的下拉菜单,该菜单提供了指向许多在线服务的链接,这些服务允许在类似IDE的界面中查看存储库的源代码。 当前支持的服务:* CodeSandbox * ...
    • cide123.github.io
      cide123.github.io
    • jide2020.github.io
      hold2020.github.io 了解Oluwaseun Ayodeji是谁...
    • codewyng:像IDE一样浏览GitHub
      IDE一样浏览GitHub • •• • • 产品特点 悬停文档:将鼠标悬停在变量上可显示其文档字符串。 跳转至定义:单击变量即可进入其定义(也可跨文件使用!)。 查找参考:单击定义可打开参考列表。 快速搜索:...
    • neuyanhao.github.com
      git remote add origin git@github.com:pua/pua.github.com.git git push -u origin master 现有的Git回购? cd existing_git_repo git remote add origin git@github.com:pua/pua.github.com.git git push -u ...
    • eclipse:集成Eclipse IDE com或GitHub
      蚀 集成IDE Eclipse com或GitHub
    • github_extension
      GitHub 身份验证 使用请求有关用户 GitHub 帐户的标识信息的示例应用程序。 用户登录 GitHub 并授权应用程序使用他们的信息后,将显示用户名和电子邮件地址(如果可用)。 此应用程序使用 Identity API 的 ...