Update build.gradle

This commit is contained in:
Flemmli97 2021-06-12 12:22:57 +02:00 committed by GitHub
parent d523a2c204
commit ad2565147c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -156,8 +156,9 @@ tasks.getByName("curseforge").doLast {
def message = new Message() def message = new Message()
def version = project.curse_versions.split(', ')[0] def version = project.curse_versions.split(', ')[0]
message.setUsername("Release") message.setUsername("Curseforge Release")
message.setContent("<@&852113509243682817> ${project.project_name} ${project.mod_version} for Minecraft ${version} has been released!") message.setContent("<@&852113509243682817> ${project.project_name} ${project.mod_version} for Minecraft ${version} has been released!")
message.setAvatarUrl("https://cdn.discordapp.com/avatars/680540027255652407/e4b7a058b24843ae13389a9a3cc3ae8c.png?size=128")
def embed = new Embed() def embed = new Embed()
embed.addField('Get it here (When it is accepted)', "${project.findProperty('curse_page_fabric')}/files/${fileID}", false) embed.addField('Get it here (When it is accepted)', "${project.findProperty('curse_page_fabric')}/files/${fileID}", false)